diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-07-18 20:32:12 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-07-18 20:46:35 +0200 |
commit | 8eca89a494294f5923ff4c62e1d2723ea02998dc (patch) | |
tree | 478ff262396a94f4a5f9ae44a0eeb913fd1e300b /kde-frameworks/kxmlgui/files | |
parent | kde-frameworks/ktexteditor: Drop 5.46.0 (r0) (diff) | |
download | gentoo-8eca89a494294f5923ff4c62e1d2723ea02998dc.tar.gz gentoo-8eca89a494294f5923ff4c62e1d2723ea02998dc.tar.bz2 gentoo-8eca89a494294f5923ff4c62e1d2723ea02998dc.zip |
kde-frameworks/kxmlgui: KMainWindow saving incorrect widget settings
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=395988
See also: https://phabricator.kde.org/D13808
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'kde-frameworks/kxmlgui/files')
-rw-r--r-- | kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch b/kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch new file mode 100644 index 000000000000..ffc62a676d55 --- /dev/null +++ b/kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch @@ -0,0 +1,32 @@ +From d35a88289513c0420863b80aa6c1cb7d2c6e978f Mon Sep 17 00:00:00 2001 +From: Mladen Milinkovic <max@scarlettvisionmedia.com> +Date: Tue, 17 Jul 2018 09:45:30 +0200 +Subject: Fix KMainWindow saving incorrect widget settings + +BUG: 395988 +In certain cases KMainWindow::saveMainWindowSettings() could have been +called after mainwindow started destroying itself. Window settings would +be saved with incorrect child widget states. e.g. some widgets would be +saved as hidden even if they were visible before destroying. +--- + src/kmainwindow.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/kmainwindow.cpp b/src/kmainwindow.cpp +index 810bf32..885ac60 100644 +--- a/src/kmainwindow.cpp ++++ b/src/kmainwindow.cpp +@@ -524,6 +524,10 @@ void KMainWindow::closeEvent(QCloseEvent *e) + } + + if (queryClose()) { ++ // widgets will start destroying themselves at this point and we don't ++ // want to save state anymore after this as it might be incorrect ++ d->autoSaveSettings = false; ++ d->letDirtySettings = false; + e->accept(); + } else { + e->ignore(); //if the window should not be closed, don't close it +-- +cgit v0.11.2 + |