diff options
| author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-05-13 19:06:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-13 19:06:47 +0200 |
| commit | d5c6a1b4d1e6d052e42366d19ffa0047168e030d (patch) | |
| tree | 8ba9746a188c39003213839825552543e3f1a48f /launcher/settings | |
| parent | c5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f (diff) | |
| parent | 6b6d6a01dc9cf05715f01e3a549740b169ef9ae3 (diff) | |
| download | PrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.tar.gz PrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.tar.bz2 PrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.zip | |
Merge pull request #1007 from Ryex/fix/network_and_signals
Diffstat (limited to 'launcher/settings')
| -rw-r--r-- | launcher/settings/SettingsObject.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/launcher/settings/SettingsObject.cpp b/launcher/settings/SettingsObject.cpp index 8a0bc045..634acd34 100644 --- a/launcher/settings/SettingsObject.cpp +++ b/launcher/settings/SettingsObject.cpp @@ -132,11 +132,10 @@ bool SettingsObject::reload() void SettingsObject::connectSignals(const Setting &setting) { - connect(&setting, SIGNAL(SettingChanged(const Setting &, QVariant)), - SLOT(changeSetting(const Setting &, QVariant))); - connect(&setting, SIGNAL(SettingChanged(const Setting &, QVariant)), + connect(&setting, &Setting::SettingChanged, this, &SettingsObject::changeSetting); + connect(&setting, SIGNAL(SettingChanged(const Setting &, QVariant)), this, SIGNAL(SettingChanged(const Setting &, QVariant))); - connect(&setting, SIGNAL(settingReset(Setting)), SLOT(resetSetting(const Setting &))); - connect(&setting, SIGNAL(settingReset(Setting)), SIGNAL(settingReset(const Setting &))); + connect(&setting, &Setting::settingReset, this, &SettingsObject::resetSetting); + connect(&setting, SIGNAL(settingReset(Setting)), this, SIGNAL(settingReset(const Setting &))); } |
