X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fchatmonitorsettingspage.cpp;h=e6f0435d2f1529e4a47ed4ed2862a73b3bf24d6f;hb=4d1f020e4e993bb72f08e6cf32d5e5a0eba51c9e;hp=faba1bdade9f6e4f0908a7b176901d8ed3abbae3;hpb=107131b98c78c3e7f4b2630f8f20453ce5400438;p=quassel.git diff --git a/src/qtui/settingspages/chatmonitorsettingspage.cpp b/src/qtui/settingspages/chatmonitorsettingspage.cpp index faba1bda..e6f0435d 100644 --- a/src/qtui/settingspages/chatmonitorsettingspage.cpp +++ b/src/qtui/settingspages/chatmonitorsettingspage.cpp @@ -77,9 +77,12 @@ bool ChatMonitorSettingsPage::hasDefaults() const void ChatMonitorSettingsPage::defaults() { + // NOTE: Whenever changing defaults here, also update ChatMonitorFilter::ChatMonitorFilter() + // and ChatMonitorSettingsPage::loadSettings() to match + settings["OperationMode"] = ChatViewSettings::OptOut; settings["ShowHighlights"] = false; - settings["ShowOwnMsgs"] = false; + settings["ShowOwnMsgs"] = true; settings["AlwaysOwn"] = false; settings["Buffers"] = QVariant(); settings["Default"] = true; @@ -130,15 +133,18 @@ void ChatMonitorSettingsPage::load() void ChatMonitorSettingsPage::loadSettings() { + // NOTE: Whenever changing defaults here, also update ChatMonitorFilter::ChatMonitorFilter() + // and ChatMonitorSettingsPage::defaults() to match ChatViewSettings chatViewSettings("ChatMonitor"); - settings["OperationMode"] = (ChatViewSettings::OperationMode)chatViewSettings.value("OperationMode", ChatViewSettings::OptOut).toInt(); + settings["OperationMode"] = (ChatViewSettings::OperationMode) + chatViewSettings.value("OperationMode", ChatViewSettings::OptOut).toInt(); settings["ShowHighlights"] = chatViewSettings.value("ShowHighlights", false); - settings["ShowOwnMsgs"] = chatViewSettings.value("ShowOwnMsgs", false); + settings["ShowOwnMsgs"] = chatViewSettings.value("ShowOwnMsgs", true); settings["AlwaysOwn"] = chatViewSettings.value("AlwaysOwn", false); settings["Buffers"] = chatViewSettings.value("Buffers", QVariantList()); settings["ShowBacklog"] = chatViewSettings.value("ShowBacklog", true); - settings["IncludeRead"] = chatViewSettings.value("IncludeRead", true); + settings["IncludeRead"] = chatViewSettings.value("IncludeRead", false); }