Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits: 839b9db6 by Lyndon Brown at 2022-01-14T07:20:41+00:00 qt: don't reset adv tree position on view change if you switch back and forth between simple and advanced views, every time you go back to the advanced view it resets the tree node selection back to the first entry. this is sooooooooooo annoying. it has bugged me for such a long time. - - - - - 1 changed file: - modules/gui/qt/dialogs/preferences/preferences.cpp Changes: ===================================== modules/gui/qt/dialogs/preferences/preferences.cpp ===================================== @@ -190,12 +190,11 @@ void PrefsDialog::setAdvanced() CONNECT( current_filter, stateChanged(int), this, onlyLoadedToggled() ); CONNECT( search, activated(), tree_filter, setFocus() ); - } - /* 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() ) ); + /* Set initial selection */ + advanced_tree->setCurrentIndex( + advanced_tree->model()->index( 0, 0, QModelIndex() ) ); + } all->setChecked( true ); stack->setCurrentIndex( ADVANCED ); View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/839b9db6e4afcb1d56e5d4d46cd9322302da0358 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/839b9db6e4afcb1d56e5d4d46cd9322302da0358 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits