Revert "settings: Local Highlights, default Current nick"
authorShane Synan <digitalcircuit36939@gmail.com>
Sat, 20 Jun 2020 00:14:17 +0000 (20:14 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 3 Oct 2020 16:13:31 +0000 (18:13 +0200)
This reverts commit 8fb51dcb129db8399209e9d07b518063d1a910f1.

Quassel 0.13 with core-side highlight support ("Remote Highlights")
has been out for roughly 1.5 years (2018-11-17).  Users have gotten
confused by why highlight ignore rules don't work, only to find out
client-side ("Local Highlights") were enabled instead.  Disable local
highlights by default to avoid this issue.  Those using old cores can
re-enable this.

src/client/clientsettings.cpp
src/qtui/settingspages/highlightsettingspage.cpp

index 17c65f2..e4a76c3 100644 (file)
@@ -296,7 +296,7 @@ void NotificationSettings::setHighlightNick(NotificationSettings::HighlightNickT
 
 NotificationSettings::HighlightNickType NotificationSettings::highlightNick() const
 {
-    return (NotificationSettings::HighlightNickType)localValue("Highlights/HighlightNick", CurrentNick).toInt();
+    return (NotificationSettings::HighlightNickType)localValue("Highlights/HighlightNick", NoNick).toInt();
 }
 
 void NotificationSettings::setNicksCaseSensitive(bool cs)
index 3741fe2..bc0debe 100644 (file)
@@ -117,7 +117,7 @@ bool HighlightSettingsPage::hasDefaults() const
 
 void HighlightSettingsPage::defaults()
 {
-    ui.highlightCurrentNick->setChecked(true);
+    ui.highlightNoNick->setChecked(true);
     ui.nicksCaseSensitive->setChecked(false);
     emptyTable();