Fix infinite recursion caused by default value call in desktopEnterpriseChannel

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-08-02 19:30:05 +08:00 committed by Camila Ayres
parent 08df1c444f
commit c475edafd1

View file

@ -1216,7 +1216,7 @@ void ConfigFile::setServerHasValidSubscription(const bool valid)
QString ConfigFile::desktopEnterpriseChannel() const QString ConfigFile::desktopEnterpriseChannel() const
{ {
QSettings settings(configFile(), QSettings::IniFormat); QSettings settings(configFile(), QSettings::IniFormat);
return settings.value(QLatin1String(desktopEnterpriseChannelName), defaultUpdateChannel()).toString(); return settings.value(QLatin1String(desktopEnterpriseChannelName), defaultUpdateChannelName).toString();
} }
void ConfigFile::setDesktopEnterpriseChannel(const QString &channel) void ConfigFile::setDesktopEnterpriseChannel(const QString &channel)