Remove use of obsolete method

Fixes Qt 6 build

Signed-off-by: Kenneth Chew <kenneth.c0@protonmail.com>
This commit is contained in:
Kenneth Chew 2022-07-10 19:07:16 -04:00
parent 03429db528
commit eae8a2914e
No known key found for this signature in database
GPG Key ID: F17D3E14A07739DA

View File

@ -217,6 +217,6 @@ void MacSparkleUpdater::setBetaAllowed(bool allowed)
void MacSparkleUpdater::loadChannelsFromSettings() void MacSparkleUpdater::loadChannelsFromSettings()
{ {
QStringList channelList = APPLICATION->settings()->get("UpdateChannel").toString().split(" "); QStringList channelList = APPLICATION->settings()->get("UpdateChannel").toString().split(" ");
auto channels = QSet<QString>::fromList(channelList); QSet<QString> channels(channelList.begin(), channelList.end());
setAllowedChannels(channels); setAllowedChannels(channels);
} }