diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-03-09 08:43:08 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-03-09 08:43:08 +0100 |
commit | f1dc4568020d222803d54fdcece324a14c9266c7 (patch) | |
tree | 52b7e5d8342eba1d1c6d9751f2f8a5124833725a /depends/settings/inisettingsobject.cpp | |
parent | 44f21406e91c68b230d38441b950eb7c3d6a8ec5 (diff) | |
download | PrismLauncher-f1dc4568020d222803d54fdcece324a14c9266c7.tar.gz PrismLauncher-f1dc4568020d222803d54fdcece324a14c9266c7.tar.bz2 PrismLauncher-f1dc4568020d222803d54fdcece324a14c9266c7.zip |
Also reload the instance cfg
While this should work, there don't seem to be any places where the signals are listened for, so changes probably will only be available when calling Setting::get
TODO: Fix that ^
Diffstat (limited to 'depends/settings/inisettingsobject.cpp')
-rw-r--r-- | depends/settings/inisettingsobject.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/settings/inisettingsobject.cpp b/depends/settings/inisettingsobject.cpp index 5e52a56f..2cee8e3c 100644 --- a/depends/settings/inisettingsobject.cpp +++ b/depends/settings/inisettingsobject.cpp @@ -28,6 +28,11 @@ void INISettingsObject::setFilePath(const QString &filePath) m_filePath = filePath; } +bool INISettingsObject::reload() +{ + return m_ini.loadFile(m_filePath) && SettingsObject::reload(); +} + void INISettingsObject::changeSetting(const Setting &setting, QVariant value) { if (contains(setting.id())) |