From: Claudio Cambra Date: Wed, 22 Feb 2023 19:03:42 +0000 (+0100) Subject: Fix channel string check in general settings' slotUpdateChannelChanged X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~96^2^2~67^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71fde8876e720ff877c717ca3a17a2ba4107c9a2;p=nextcloud-desktop.git Fix channel string check in general settings' slotUpdateChannelChanged Signed-off-by: Claudio Cambra --- diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 6a5164a26..87217c4f6 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -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; }