From 991077a32ae177c8068b1e2482c185b3420ece76 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 25 Aug 2019 10:17:05 +0200 Subject: [PATCH] fixed loading of header settings in MessageaDialog --- retroshare-gui/src/gui/msgs/MessagesDialog.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/msgs/MessagesDialog.cpp b/retroshare-gui/src/gui/msgs/MessagesDialog.cpp index 2837b5b3a..843d964ef 100644 --- a/retroshare-gui/src/gui/msgs/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/msgs/MessagesDialog.cpp @@ -187,9 +187,6 @@ MessagesDialog::MessagesDialog(QWidget *parent) //setting default filter by column as subject ui.filterLineEdit->setCurrentFilter(RsMessageModel::COLUMN_THREAD_SUBJECT); - // load settings - processSettings(true); - /////////////////////////////////////////////////////////////////////////////////////// // Post "load settings" actions (which makes sure they are not affected by settings) // /////////////////////////////////////////////////////////////////////////////////////// @@ -234,6 +231,9 @@ MessagesDialog::MessagesDialog(QWidget *parent) // fill quick view fillQuickView(); + // load settings + processSettings(true); + //ui.messageTreeWidget->installEventFilter(this); // remove close button of the the first tab @@ -345,9 +345,8 @@ void MessagesDialog::processSettings(bool load) ui.filterLineEdit->setCurrentFilter(Settings->value("filterColumn", RsMessageModel::COLUMN_THREAD_SUBJECT).toInt()); // state of message tree - if (Settings->value("MessageTreeVersion").toInt() == messageTreeVersion) { + if (Settings->value("MessageTreeVersion").toInt() == messageTreeVersion) msgwheader->restoreState(Settings->value("MessageTree").toByteArray()); - } // state of splitter ui.msgSplitter->restoreState(Settings->value("SplitterMsg").toByteArray());