[vlc-commits] qt: playlist: Display the stream icon when appropriate

Hugo Beauzée-Luyssen git at videolan.org
Fri Jul 21 15:57:41 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul 21 15:56:21 2017 +0200| [00094c7d66b24b59dc3544627e8a557807e1a559] | committer: Hugo Beauzée-Luyssen

qt: playlist: Display the stream icon when appropriate

Fix #18534

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00094c7d66b24b59dc3544627e8a557807e1a559
---

 modules/gui/qt/components/playlist/playlist_model.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 18c84cf7f8..ebccf8ad76 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -346,7 +346,10 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
                 {
                     PLItem *item = getItem( index );
                     /* Used to segfault here because i_type wasn't always initialized */
-                    return QVariant( icons[item->inputItem()->i_type] );
+                    int idx = item->inputItem()->i_type;
+                    if( item->inputItem()->b_net && item->inputItem()->i_type == ITEM_TYPE_FILE )
+                        idx = ITEM_TYPE_STREAM;
+                    return QVariant( icons[idx] );
                 }
                 case COLUMN_COVER:
                     /* !warn: changes tree item line height. Otherwise, override



More information about the vlc-commits mailing list