Bug 425529 - Document name missing from window title
Summary: Document name missing from window title
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 4.3.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-19 05:53 UTC by David Gene
Modified: 2020-08-20 10:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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