From: nds Date: Fri, 24 Oct 2014 10:28:33 +0000 (+0400) Subject: refs #98 - Default color for constraints X-Git-Tag: V_0.5~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2be2a749ec2a157df431f04753ded237944894b1;p=modules%2Fshaper.git refs #98 - Default color for constraints refs #129 - old LightApprc.7.4.0 problem The default values save mechanizm is implemented. --- 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(); }