[kde-doc-english] [trojita] src/Gui: GUI: reset the views to a reasonable state after replacing the models

Jan Kundrát jkt at flaska.net
Wed Jun 5 16:02:29 UTC 2013


Git commit 8f9b48998a7ffc556cbe4af5bc17b79e2b0a3d9d by Jan Kundrát.
Committed on 04/06/2013 at 18:43.
Pushed by jkt into branch 'master'.

GUI: reset the views to a reasonable state after replacing the models

Previously, the message list tree would get reset to Qt's default sizes (which
are just wrong) when the user saves settings.

REVIEW: 110831

M  +1    -0    src/Gui/Window.cpp

http://commits.kde.org/trojita/8f9b48998a7ffc556cbe4af5bc17b79e2b0a3d9d

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index c359d65..28e2b02 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -1062,6 +1062,7 @@ void MainWindow::slotShowSettings()
         QMessageBox::critical(this, tr("No Configuration"),
                               trUtf8("No IMAP account is configured. Trojitá cannot do much without one."));
     }
+    applySizesAndState();
 }
 
 void MainWindow::authenticationRequested()



More information about the kde-doc-english mailing list