vlc | branch: master | Denis Charmet <[email protected]> | Sun Jul 2 15:27:32 2017 +0200| [9b68e7653fa4885ef239c23c3e26c4f5790258e2] | committer: Jean-Baptiste Kempf
Qt: force the rebuild of the view to properly sort playlist items Fix #18388 Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b68e7653fa4885ef239c23c3e26c4f5790258e2 --- modules/gui/qt/components/playlist/playlist_model.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp index dd88306248..18c84cf7f8 100644 --- a/modules/gui/qt/components/playlist/playlist_model.cpp +++ b/modules/gui/qt/components/playlist/playlist_model.cpp @@ -644,7 +644,11 @@ void PLModel::processItemAppend( int i_pl_itemid, int i_pl_itemidparent ) if ( newItem->inputItem() == THEMIM->currentInputItem() ) emit currentIndexChanged( index( newItem, 0 ) ); - if( latestSearch.isEmpty() ) return; + if( latestSearch.isEmpty() ) + { + rebuild(); + return; + } filter( latestSearch, index( rootItem, 0), false /*FIXME*/ ); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
