X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorfilter.cpp;h=b9fba7bfab31456ba642216e6b09c2173b627a75;hp=79cdf0a92eade6ec704f6fdd688ec2ce3a2e006d;hb=a65f42197839da536975b3e2858eedcef420035f;hpb=107131b98c78c3e7f4b2630f8f20453ce5400438 diff --git a/src/qtui/chatmonitorfilter.cpp b/src/qtui/chatmonitorfilter.cpp index 79cdf0a9..b9fba7bf 100644 --- a/src/qtui/chatmonitorfilter.cpp +++ b/src/qtui/chatmonitorfilter.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -34,8 +34,11 @@ 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()); + ChatViewSettings viewSettings(ChatMonitorFilter::idString()); _showFields = viewSettings.value("ShowFields", AllFields).toInt(); _showOwnMessages = viewSettings.value("ShowOwnMsgs", true).toBool(); viewSettings.notify("ShowFields", this, SLOT(showFieldsSettingChanged(const QVariant &))); @@ -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 &)));