mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
fixed loading of header settings in MessageaDialog
This commit is contained in:
parent
56fcd38851
commit
991077a32a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user