https://bugs.kde.org/show_bug.cgi?id=464224

            Bug ID: 464224
           Summary: Inconsistent tab behavior when reopening session
    Classification: Applications
           Product: kate
           Version: 22.12.1
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: sessions
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: voldywhoe...@gmail.com
  Target Milestone: ---

Created attachment 155251
  --> https://bugs.kde.org/attachment.cgi?id=155251&action=edit
Comparison of my Kate session before closing and reopening versus after.

SUMMARY

I've got Kate set to load the last used session on startup, and to
automatically save and restore newly-created unsaved files. Thus, when I close
and reopen my Kate window, both saved and unsaved files I had open pre-close
will remain available post-open.

However, there's an inconsistency in whether or not they appear in tabs upon
reopening. The saved files reopen as tabs; the unsaved files, however, *don't*
reopen as tabs on launch, instead needing to be clicked into via Quick Open or
via the Documents sidebar interface in order to be reopened.


STEPS TO REPRODUCE

1. In Settings > Configure Kate... > Session, check "Load last used session" in
the Application Startup Behavior box and "Newly-created unsaved files" in the
Application Startup/Shutdown Behavior box.
2. Start a session.
3. Create a file with some text in it, in one tab, and save it somewhere as
Test.txt. Create another file with some text in it, in another tab, and *don't*
save it anywhere, leaving it in the interface as Untitled.
3. Close Kate.
4. Open Kate.


OBSERVED RESULT

On reopening, Test.txt will be open in a tab. Untitled, however, will *not* be
open in a tab, despite having been reopened alongside Test.txt; it will only be
visible in non-tab interface areas, such as Quick Open and the Documents
sidebar panel. (If clicked into via one of those panels, it will then open as a
tab as normal, and will at that point resist being re-closed without saving.)


EXPECTED RESULT

On reopening, both Test.txt and Untitled should be open in tabs, same as they
both were on closing.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, Plasma 5.26.5
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8


ADDITIONAL INFORMATION

I've attached a before/after screenshot, contrasting the state of the interface
before closing and after reopening my Kate session, in case it's helpful
helpful in clarifying the nature of the inconsistency. (If things were
consistent, the before half and the after half would be ~identical.)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to