Qt4 - Select the first category on the advanced preferences.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 19 Jan 2008 03:01:09 +0000 (03:01 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 19 Jan 2008 03:01:09 +0000 (03:01 +0000)
modules/gui/qt4/dialogs/preferences.cpp

index 8c59892..280a3eb 100644 (file)
@@ -148,6 +148,11 @@ void PrefsDialog::setAdvanced()
     }
     advanced_panel->show();
 
+    /* Select the first Item of the preferences. Maybe you want to select a specified
+       category... */
+    advanced_tree->setCurrentIndex(
+            advanced_tree->model()->index( 0, 0, QModelIndex() ) );
+
     all->setChecked( true );
 }