]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Add missing preference item
authorvsr <vsr@opencascade.com>
Tue, 21 Oct 2014 13:43:27 +0000 (17:43 +0400)
committervsr <vsr@opencascade.com>
Tue, 21 Oct 2014 13:43:27 +0000 (17:43 +0400)
resources/SalomeApp.xml.in
src/GEOMGUI/GEOMGUI_Selection.cxx
src/GEOMGUI/GeometryGUI.cxx

index 82a6f2b6c4a57ff1fc012dbcfe5c03749c07e7ca..569ff16a8487b6d4d8d2259e79479ac245248484 100644 (file)
@@ -85,6 +85,7 @@
     <parameter name="dependency_tree_arrow_color"           value="0, 0, 130" />
     <parameter name="dependency_tree_highlight_arrow_color" value="0, 0, 255" />
     <parameter name="dependency_tree_select_arrow_color"    value="255, 0, 0" />
+    <parameter name="auto_bring_to_front" value="false" />
 
     <!-- Dimension presentation properties -->
     <parameter name="dimensions_color"          value="#ffffff" />
index 583a730789d52ebb572eac19e342fa8f79f0577b..014c622c29797de5d7d80fc036c37bd0e0f9abd2 100644 (file)
@@ -380,7 +380,7 @@ QString GEOMGUI_Selection::displayMode( const int index ) const
 
 bool GEOMGUI_Selection::autoBringToFront( const int /*index*/ ) const
 {
-  return SUIT_Session::session()->resourceMgr()->booleanValue( "Geometry", "auto_bring_to_front" );
+  return SUIT_Session::session()->resourceMgr()->booleanValue( "Geometry", "auto_bring_to_front", "false" );
 }
 
 bool GEOMGUI_Selection::isVectorsMode( const int index ) const
index d3d37411ced98181e82137b83d7ea2435010f214..3cb322e78edcd23753eca3484d2a4605bb5b8b2b 100644 (file)
@@ -2020,7 +2020,7 @@ void GeometryGUI::updateCreationInfo()
 
 void GeometryGUI::onAutoBringToFront()
 {
-  bool isAutoBringToFront = SUIT_Session::session()->resourceMgr()->booleanValue( "Geometry", "auto_bring_to_front" );
+  bool isAutoBringToFront = SUIT_Session::session()->resourceMgr()->booleanValue( "Geometry", "auto_bring_to_front", "false" );
   if( !isAutoBringToFront )
     return;