[vlmc-devel] [PATCH 2/3] Settings: Call restoreDefaultValues() of settingsChildren when that of their parent is called

Yikai Lu luyikei.qmltu at gmail.com
Sun Apr 10 11:39:41 CEST 2016


---
 src/Settings/Settings.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index cbe5bd7..b8cef75 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -203,6 +203,8 @@ Settings::restoreDefaultValues()
     {
         s->restoreDefault();
     }
+    for ( auto &pair : m_settingsChildren )
+        pair.second->restoreDefaultValues();
 }
 SettingValue*
 Settings::value(const QString &key)
-- 
1.9.1



More information about the Vlmc-devel mailing list