summaryrefslogtreecommitdiff
path: root/kde-frameworks/kxmlgui/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-21 19:03:52 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-21 19:03:52 +0100
commit8cdbce52e2f89fecc3d9bac3ff73ebee1c8f8c75 (patch)
treeca7923805fbd063c1aad107e113461080e46402a /kde-frameworks/kxmlgui/files
parentbc93fc13803e104b3c20dbfc13252f46f7c2962f (diff)
gentoo resync : 21.07.2018
Diffstat (limited to 'kde-frameworks/kxmlgui/files')
-rw-r--r--kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch32
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
+