From 679193a7abe7989c1080711b001204e5b81c94b6 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 23 Nov 2007 15:40:27 +0000 Subject: [PATCH] Fix for Bug IPAL17662 TC71: REGR: Post-pro preferences are wrong --- src/VISUGUI/VisuGUI.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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, -- 2.39.2