]> git.sesse.net Git - vlc/commitdiff
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 8c5989261e7129685fbbf90ccd7b62e94bb3f453..280a3ebcd86505bc215f320aee9adf8a8829379c 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 );
 }