File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -705,14 +705,15 @@ QString ConfigFile::defaultUpdateChannel() const
705705
706706QString ConfigFile::currentUpdateChannel () const
707707{
708+ auto updateChannel = defaultUpdateChannel ();
708709 QSettings settings (configFile (), QSettings::IniFormat);
709- if (const auto configUpdateChannel = settings.value (QLatin1String (updateChannelC), defaultUpdateChannel () ).toString ();
710+ if (const auto configUpdateChannel = settings.value (QLatin1String (updateChannelC), updateChannel ).toString ();
710711 validUpdateChannels ().contains (configUpdateChannel)) {
711712 qCWarning (lcConfigFile ()) << " Config file has a valid update channel:" << configUpdateChannel;
712- return configUpdateChannel;
713+ updateChannel = configUpdateChannel;
713714 }
714715
715- return defaultUpdateChannel () ;
716+ return updateChannel ;
716717}
717718
718719void ConfigFile::setUpdateChannel (const QString &channel)
You can’t perform that action at this time.
0 commit comments