Add missing preference item

This commit is contained in:
vsr 2014-10-21 17:43:27 +04:00
parent 04abbcb307
commit b7989b4db5
3 changed files with 3 additions and 2 deletions

View File

@ -85,6 +85,7 @@
<parameter name="dependency_tree_arrow_color" value="0, 0, 130" /> <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_highlight_arrow_color" value="0, 0, 255" />
<parameter name="dependency_tree_select_arrow_color" value="255, 0, 0" /> <parameter name="dependency_tree_select_arrow_color" value="255, 0, 0" />
<parameter name="auto_bring_to_front" value="false" />
<!-- Dimension presentation properties --> <!-- Dimension presentation properties -->
<parameter name="dimensions_color" value="#ffffff" /> <parameter name="dimensions_color" value="#ffffff" />

View File

@ -380,7 +380,7 @@ QString GEOMGUI_Selection::displayMode( const int index ) const
bool GEOMGUI_Selection::autoBringToFront( 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 bool GEOMGUI_Selection::isVectorsMode( const int index ) const

View File

@ -2020,7 +2020,7 @@ void GeometryGUI::updateCreationInfo()
void GeometryGUI::onAutoBringToFront() 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 ) if( !isAutoBringToFront )
return; return;