X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorfilter.cpp;h=45cc6c010f08a573ef87fae1e490eab55ff2f378;hp=79cdf0a92eade6ec704f6fdd688ec2ce3a2e006d;hb=af6cd0ea27697a79902413da2ff898a87955ebe2;hpb=0bfeaf6b4f42062f1b889a9448a3616748977814 diff --git a/src/qtui/chatmonitorfilter.cpp b/src/qtui/chatmonitorfilter.cpp index 79cdf0a9..45cc6c01 100644 --- a/src/qtui/chatmonitorfilter.cpp +++ b/src/qtui/chatmonitorfilter.cpp @@ -34,6 +34,9 @@ ChatMonitorFilter::ChatMonitorFilter(MessageModel *model, QObject *parent) _showSenderBrackets = defaultSettings.showSenderBrackets(); defaultSettings.notify("ShowSenderBrackets", this, SLOT(showSenderBracketsSettingChanged(const QVariant &))); + // NOTE: Whenever changing defaults here, also update ChatMonitorSettingsPage::loadSettings() + // and ChatMonitorSettingsPage::defaults() to match + // Chat Monitor specific configuration ChatViewSettings viewSettings(idString()); _showFields = viewSettings.value("ShowFields", AllFields).toInt(); @@ -50,12 +53,13 @@ ChatMonitorFilter::ChatMonitorFilter(MessageModel *model, QObject *parent) QString alwaysOwnSettingsId = "AlwaysOwn"; _showHighlights = viewSettings.value(showHighlightsSettingsId, false).toBool(); - _operationMode = viewSettings.value(operationModeSettingsId, 0).toInt(); + _operationMode = + viewSettings.value(operationModeSettingsId, ChatViewSettings::InvalidMode).toInt(); // read configured list of buffers to monitor/ignore foreach(QVariant v, viewSettings.value(buffersSettingsId, QVariant()).toList()) _bufferIds << v.value(); _showBacklog = viewSettings.value(showBacklogSettingsId, true).toBool(); - _includeRead = viewSettings.value(includeReadSettingsId, true).toBool(); + _includeRead = viewSettings.value(includeReadSettingsId, false).toBool(); _alwaysOwn = viewSettings.value(alwaysOwnSettingsId, false).toBool(); viewSettings.notify(showHighlightsSettingsId, this, SLOT(showHighlightsSettingChanged(const QVariant &)));