From: apo Date: Fri, 23 Nov 2007 15:40:27 +0000 (+0000) Subject: Fix for Bug IPAL17662 X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=679193a7abe7989c1080711b001204e5b81c94b6;p=modules%2Fvisu.git Fix for Bug IPAL17662 TC71: REGR: Post-pro preferences are wrong --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index bfb32d0d..37d7c3ab 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3295,18 +3295,17 @@ void VisuGUI::createPreferences() int cacheGr = addPreference( tr( "VISU_3DCACHE_PROPS" ), cacheTab ); setPreferenceProperty( cacheGr, "columns", 1 ); + int memory_mode = addPreference( tr( "VISU_MEMORY_MODE" ), cacheGr, + LightApp_Preferences::Selector, "VISU", "cache_memory_mode" ); + modes.clear(); modes.append( tr( "VISU_MINIMAL" ) ); modes.append( tr( "VISU_LIMITED" ) ); + setPreferenceProperty( memory_mode, "strings", modes ); + indices.clear(); indices.append( 0 ); - indices.append( 1 ); - setPreferenceProperty( mode, "strings", modes ); - setPreferenceProperty( mode, "indexes", indices ); - - int memory_mode = addPreference( tr( "VISU_MEMORY_MODE" ), cacheGr, - LightApp_Preferences::Selector, "VISU", "cache_memory_mode" ); - setPreferenceProperty( memory_mode, "strings", modes ); + indices.append( 1 ); setPreferenceProperty( memory_mode, "indexes", indices ); int memory_limit = addPreference( tr( "VISU_MEMORY_LIMIT" ), cacheGr,