Fix channel string check in general settings' slotUpdateChannelChanged
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 22 Feb 2023 19:03:42 +0000 (20:03 +0100)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 8 May 2023 11:06:58 +0000 (19:06 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/generalsettings.cpp

index 6a5164a265382299e5e61a03aa6ed5f8197214c6..87217c4f6cbe6ff7ada26b44fe7e3256723187a1 100644 (file)
@@ -314,6 +314,8 @@ void GeneralSettings::slotUpdateInfo()
 
 void GeneralSettings::slotUpdateChannelChanged(const QString &translatedChannel)
 {
+    Q_UNUSED(translatedChannel);
+
     const auto updateChannelToLocalized = [](const QString &channel) {
         auto decodedTranslatedChannel = QString{};
 
@@ -345,8 +347,7 @@ void GeneralSettings::slotUpdateChannelChanged(const QString &translatedChannel)
     };
 
     const auto channel = updateChannelFromLocalized(_ui->updateChannel->currentIndex());
-
-    if (translatedChannel == ConfigFile().updateChannel()) {
+    if (channel == ConfigFile().updateChannel()) {
         return;
     }