[vlc-devel] [PATCH] Force the rebuild of the view to properly sort playlist items
Denis Charmet
typx at dinauz.org
Sun Jul 2 15:27:32 CEST 2017
From: Denis Charmet <typx at videolan.org>
Fix #18388
---
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*/ );
}
--
2.11.0
More information about the vlc-devel
mailing list