]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug IPAL19207 : Qt4 porting: Preferences/Post-Pro/Object browser - no Value...
authormkr <mkr@opencascade.com>
Fri, 4 Apr 2008 14:36:00 +0000 (14:36 +0000)
committermkr <mkr@opencascade.com>
Fri, 4 Apr 2008 14:36:00 +0000 (14:36 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index 403aeb87004efad0c892542ecf0599182ce4b93e..19cf616f9165e70d06f30778bac973c61fa6c30e 100644 (file)
@@ -800,10 +800,10 @@ void SalomeApp_Application::createPreferences( LightApp_Preferences* pref )
   int salomeCat = pref->addPreference( tr( "PREF_CATEGORY_SALOME" ) );
   int obTab = pref->addPreference( tr( "PREF_TAB_OBJBROWSER" ), salomeCat );
   int defCols = pref->addPreference( tr( "PREF_GROUP_DEF_COLUMNS" ), obTab );
-  for ( int i = SalomeApp_DataObject::ValueIdx; i <= SalomeApp_DataObject::RefEntryIdx; i++ )
+  for ( int i = SalomeApp_DataObject::EntryIdx; i <= SalomeApp_DataObject::RefEntryIdx; i++ )
   {
-    pref->addPreference( tr( QString().sprintf( "OBJ_BROWSER_COLUMN_%d", i ).toLatin1() ), defCols,
-                         LightApp_Preferences::Bool, "ObjectBrowser", QString().sprintf( "visibility_column_%d", i ) );
+    pref->addPreference( tr( QString().sprintf( "OBJ_BROWSER_COLUMN_%d", i-1 ).toLatin1() ), defCols,
+                         LightApp_Preferences::Bool, "ObjectBrowser", QString().sprintf( "visibility_column_%d", i-1 ) );
   }
   pref->setItemProperty( "columns", 1, defCols );