X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fdccsettingspage.cpp;h=3d74449725dd6beba0f8eec37a745f1d4250183e;hb=1a5c1814a0c52f6f35e65c7033b2f896bf1188e3;hp=56d22caf57257dfff637419deafa84d4ba4b6316;hpb=a95ad2de573027f9bee36db972bcae4195168d0c;p=quassel.git diff --git a/src/qtui/settingspages/dccsettingspage.cpp b/src/qtui/settingspages/dccsettingspage.cpp index 56d22caf..3d744497 100644 --- a/src/qtui/settingspages/dccsettingspage.cpp +++ b/src/qtui/settingspages/dccsettingspage.cpp @@ -81,14 +81,14 @@ bool DccSettingsPage::hasDefaults() const void DccSettingsPage::defaults() { - _localConfig = DccConfig(); + _localConfig.fromVariantMap(DccConfig{}.toVariantMap()); SettingsPage::load(); widgetHasChanged(); } void DccSettingsPage::load() { - _localConfig = isClientConfigValid() ? *_clientConfig : DccConfig{}; + _localConfig.fromVariantMap(isClientConfigValid() ? _clientConfig->toVariantMap() : DccConfig{}.toVariantMap()); SettingsPage::load(); widgetHasChanged(); }