From 2be2a749ec2a157df431f04753ded237944894b1 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 24 Oct 2014 14:28:33 +0400 Subject: [PATCH] refs #98 - Default color for constraints refs #129 - old LightApprc.7.4.0 problem The default values save mechanizm is implemented. --- src/Config/Config_PropManager.h | 2 +- src/XGUI/XGUI_Preferences.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/Config_PropManager.h b/src/Config/Config_PropManager.h index 1753e8eb4..444312ebd 100644 --- a/src/Config/Config_PropManager.h +++ b/src/Config/Config_PropManager.h @@ -26,7 +26,7 @@ class Config_PropManager * \param theDefValue - default and initial value of the property * Returns True if the property succesfully registered */ - CONFIG_EXPORT static bool registerProp(const std::string& theSection, const std::string& theName, + CONFIG_EXPORT static Config_Prop* registerProp(const std::string& theSection, const std::string& theName, const std::string& theTitle, Config_Prop::PropType theType, const std::string& theDefValue = ""); CONFIG_EXPORT static Config_Prop* findProp( diff --git a/src/XGUI/XGUI_Preferences.cpp b/src/XGUI/XGUI_Preferences.cpp index ed3782b11..8f7b3059a 100644 --- a/src/XGUI/XGUI_Preferences.cpp +++ b/src/XGUI/XGUI_Preferences.cpp @@ -277,7 +277,7 @@ void XGUI_PreferencesDlg::onDefault() // reset plugin's resources XGUI_Preferences::resetConfig(); - XGUI_Preferences::updateResourcesByConfig(false); + XGUI_Preferences::updateResourcesByConfig(); myPreferences->retrieve(); } -- 2.39.2