Bug 386488

Summary: Subwindow mode: minimizing/restoring or maximizing/unmaximizing file with unsaved changes makes titlebar asterisk (*) disappear
Product: [Applications] krita Reporter: Amir Adar <amir.t.adar>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: freebox64, halla
Priority: NOR    
Version: 3.3.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:

Description Amir Adar 2017-11-03 09:04:16 UTC
To reproduce:

1. Go to Settings > Configure Krita... > General > Window, and make sure that Multiple Document Mode is set to Subwindows.
2. Create a new document.
3. Draw something on the document so as to have an asterisk (*) show on the main window titlebar to indicate unsaved changes.
4. Maximize, unmaximize, minimize or restore the subwindow.

Expected result: as long as the document is in focus, the asterisk should be displayed in the titlebar until the file is saved.

Actual result: The asterisk disappears when changing the subwindow's status. It only comes back when switching focus away from and back to the subwindow (with another file or with another application).
Comment 1 mvowada 2018-01-20 16:31:08 UTC
(Confirming on Ubuntu 14.04 - Krita 4.0.0-beta1.1.appimage)
Comment 2 Halla Rempt 2019-05-03 11:25:35 UTC
Git commit ff8fc2c2ae92c0a4b731833368082945a2dcc661 by Boudewijn Rempt.
Committed on 03/05/2019 at 11:22.
Pushed by rempt into branch 'master'.

Fix handling of modified markers in subwindow mode

The * marker for modified documents disappeared because subwindows
weren't set using kmainwindow's setCaption method that added the [*]
placeholder.

Now those methods are gone, and we set the placeholder in
KisMainWindow's updateCaption method.

M  +64   -48   libs/ui/KisMainWindow.cpp
M  +1    -1    libs/ui/KisMainWindow.h
M  +0    -19   libs/widgetutils/xmlgui/kmainwindow.cpp
M  +0    -26   libs/widgetutils/xmlgui/kmainwindow.h

https://invent.kde.org/kde/krita/commit/ff8fc2c2ae92c0a4b731833368082945a2dcc661