Merge pull request #6963 from nextcloud/bugfix/enterprise-channel-infinite-recursion

Fix infinite recursion caused by default value call in desktopEnterpriseChannel
This commit is contained in:
Camila Ayres 2024-08-04 20:37:41 +02:00 committed by GitHub
commit 6dbf41e0e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1216,7 +1216,7 @@ void ConfigFile::setServerHasValidSubscription(const bool valid)
QString ConfigFile::desktopEnterpriseChannel() const
{
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)