]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #98 - Default color for constraints
authornds <natalia.donis@opencascade.com>
Mon, 27 Oct 2014 07:09:18 +0000 (10:09 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 27 Oct 2014 07:09:18 +0000 (10:09 +0300)
refs #129 - old LightApprc.7.4.0 problem
The default values save mechanizm is implemented.
SUIT is modified and the compillation error should not appear.

src/XGUI/XGUI_Preferences.cpp

index d354a4c94662d1b12e0f539c3d7ed54f7d7bdbd7..8f7b3059a79fadf2d4ca40cf26d94373ed49a1a1 100644 (file)
@@ -270,10 +270,10 @@ void XGUI_PreferencesDlg::modified(XGUI_Prefs& theModified) const
 void XGUI_PreferencesDlg::onDefault()
 {
   // reset main resources
-  //QtxResourceMgr::WorkingMode aPrev = myPreferences->resourceMgr()->setWorkingMode
-  //                                             (QtxResourceMgr::IgnoreUserValues);
-  //myPreferences->retrieve();
-  //myPreferences->resourceMgr()->setWorkingMode(aPrev);
+  QtxResourceMgr::WorkingMode aPrev = myPreferences->resourceMgr()->setWorkingMode
+                                               (QtxResourceMgr::IgnoreUserValues);
+  myPreferences->retrieve();
+  myPreferences->resourceMgr()->setWorkingMode(aPrev);
 
   // reset plugin's resources
   XGUI_Preferences::resetConfig();