Bug 425529

Summary: Document name missing from window title
Product: [Applications] krita Reporter: David Gene <david>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ahab.greybeard, halla
Priority: NOR    
Version: 4.3.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Gene 2020-08-19 05:53:45 UTC
SUMMARY

No document name in window title.

STEPS TO REPRODUCE
1. Open a .kra file
2. Read title of window

OBSERVED RESULT

Window title only reads "― Krita"

EXPECTED RESULT

If the document opened is called "thumb.kra", the window title should read some version of "thumb ― Krita".

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04 running MATE Desktop
Comment 1 Ahab Greybeard 2020-08-19 15:33:10 UTC
Using Debian 10 and MATE, all appimages from 4.2.0 onwards do not have the document name in the title bar.

The Debian repo version (4.1.7, they are slow) does have the document name in the title bar.

Can you remember when you last saw the name in the title bar and with what form of running krita?
Comment 2 Halla Rempt 2020-08-20 09:26:07 UTC
I actually restored this behaviour in the krita/4.3 and master branch, but that shows why I changed it in the first place: now it shows the filename twice if krita is in subwindow mode.
Comment 3 Halla Rempt 2020-08-20 10:12:08 UTC
Git commit 304e72bbe53685e48c479a8175a6685da7ab10c6 by Boudewijn Rempt.
Committed on 20/08/2020 at 10:11.
Pushed by rempt into branch 'master'.

Try once more to fix the window captions

The problem is that QMDiArea messes with the mainwindow's title
and that cannot be changed without hacking Qt; it will always
add the current mdi document to the window title.

M  +18   -23   libs/ui/KisMainWindow.cpp
M  +0    -6    libs/ui/KisMainWindow.h

https://invent.kde.org/graphics/krita/commit/304e72bbe53685e48c479a8175a6685da7ab10c6
Comment 4 Halla Rempt 2020-08-20 10:22:13 UTC
Git commit 191a104cd38566205319dd14f7a7f23dc9dfb238 by Boudewijn Rempt.
Committed on 20/08/2020 at 10:13.
Pushed by rempt into branch 'krita/4.3'.

Try once more to fix the window captions

The problem is that QMDiArea messes with the mainwindow's title
and that cannot be changed without hacking Qt; it will always
add the current mdi document to the window title.
(cherry picked from commit 304e72bbe53685e48c479a8175a6685da7ab10c6)

M  +18   -19   libs/ui/KisMainWindow.cpp
M  +0    -5    libs/ui/KisMainWindow.h

https://invent.kde.org/graphics/krita/commit/191a104cd38566205319dd14f7a7f23dc9dfb238