fixed loading of header settings in MessageaDialog

This commit is contained in:
csoler 2019-08-25 10:17:05 +02:00
parent 56fcd38851
commit 991077a32a
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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());