Summary: | Konsole and Okular with multiple tabs pop up an unnecessary "N open terminals/tabs" warning on logout or shutdown when session restore is in use | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kxmlgui | Reporter: | Michael Hamilton <michael> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | johannes, kde, nate, postix, wbauer1 |
Priority: | NOR | Keywords: | usability |
Version: | 5.68.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=418885 | ||
Latest Commit: | https://invent.kde.org/frameworks/kxmlgui/-/commit/ab73c532cbcb16d9a3912670f021477dc25634fc | Version Fixed In: | 5.75 |
Sentry Crash Report: |
Description
Michael Hamilton
2020-01-25 09:02:32 UTC
That's not a bug in konsole though, IMHO. IIRC, it started with the upgrade to Qt 5.14.0, and also affects other applications like Konqueror. It's caused by this change in Qt 5.14: https://code.qt.io/cgit/qt/qtbase.git/commit?h=5.14&id=1b6db1849477be30ef0ca52c288d358b911ea1e4 (I built and installed Qt 5.14.1 with this change reverted, and the problem was gone) What happens is that KMainWindow::tryClose() is called twice on logout now. The first time qApp->isSavingSession() is true (and so konsole doesn't show the warning dialog), but the second time qApp->isSavingSession() is false (this didn't happen earlier, it causes the dialog to be shown now, but doesn't block the logout). I suppose kxmlgui would need to be adjusted to that Qt change... (In reply to Wolfgang Bauer from comment #2) > What happens is that KMainWindow::tryClose() is called twice on logout now. I mean KMainWindow::queryClose()... *** Bug 418885 has been marked as a duplicate of this bug. *** So it is a change in what plasma does when logging out? (In reply to Allan Sandfeld from comment #5) > So it is a change in what plasma does when logging out? Ah right, read the comments again. So a change in how Qt closes applications. Should be fixed by https://phabricator.kde.org/D29873 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/10 Fixed with https://invent.kde.org/frameworks/kxmlgui/-/commit/ab73c532cbcb16d9a3912670f021477dc25634fc in Frameworks 5.75! |