X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fchatmonitorsettingspage.cpp;fp=src%2Fqtui%2Fsettingspages%2Fchatmonitorsettingspage.cpp;h=34f8cb9454fd5ed9b088c21f384b6a2018e00f7a;hp=d16342b61ac58aaf20ba5d0f9e0e171a82011dc5;hb=69995f44c42f1f324cdb075454d440df7626d42a;hpb=815c628e93f34d546eed234adabe58a76d83e7fd diff --git a/src/qtui/settingspages/chatmonitorsettingspage.cpp b/src/qtui/settingspages/chatmonitorsettingspage.cpp index d16342b6..34f8cb94 100644 --- a/src/qtui/settingspages/chatmonitorsettingspage.cpp +++ b/src/qtui/settingspages/chatmonitorsettingspage.cpp @@ -63,6 +63,7 @@ ChatMonitorSettingsPage::ChatMonitorSettingsPage(QWidget *parent) connect(ui.operationMode, SIGNAL(currentIndexChanged(int)), SLOT(switchOperationMode(int))); connect(ui.showHighlights, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); connect(ui.showOwnMessages, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); + connect(ui.showBacklog, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); } @@ -79,6 +80,7 @@ void ChatMonitorSettingsPage::defaults() settings["ShowOwnMsgs"] = false; settings["Buffers"] = QVariant(); settings["Default"] = true; + settings["ShowBacklog"] = true; load(); widgetHasChanged(); } @@ -95,6 +97,7 @@ void ChatMonitorSettingsPage::load() ui.operationMode->setCurrentIndex(settings["OperationMode"].toInt() - 1); ui.showHighlights->setChecked(settings["ShowHighlights"].toBool()); ui.showOwnMessages->setChecked(settings["ShowOwnMsgs"].toBool()); + ui.showBacklog->setChecked(settings["ShowBacklog"].toBool()); // get all available buffer Ids QList allBufferIds = Client::networkModel()->allBufferIds(); @@ -127,6 +130,7 @@ void ChatMonitorSettingsPage::loadSettings() settings["ShowHighlights"] = chatViewSettings.value("ShowHighlights", false); settings["ShowOwnMsgs"] = chatViewSettings.value("ShowOwnMsgs", false); settings["Buffers"] = chatViewSettings.value("Buffers", QVariantList()); + settings["ShowBacklog"] = chatViewSettings.value("ShowBacklog", true); } @@ -137,6 +141,7 @@ void ChatMonitorSettingsPage::save() chatViewSettings.setValue("OperationMode", ui.operationMode->currentIndex() + 1); chatViewSettings.setValue("ShowHighlights", ui.showHighlights->isChecked()); chatViewSettings.setValue("ShowOwnMsgs", ui.showOwnMessages->isChecked()); + chatViewSettings.setValue("ShowBacklog", ui.showBacklog->isChecked()); // save list of active buffers QVariantList saveableBufferIdList;