[vlc-devel] [PATCH 10/18] qt: playlistItem bool operator return true when it has an actual content

Pierre Lamot pierre at videolabs.io
Wed Sep 23 14:27:44 CEST 2020


---
 modules/gui/qt/playlist/playlist_item.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/playlist/playlist_item.cpp b/modules/gui/qt/playlist/playlist_item.cpp
index 6ba6dc7f68..0d7d460abe 100644
--- a/modules/gui/qt/playlist/playlist_item.cpp
+++ b/modules/gui/qt/playlist/playlist_item.cpp
@@ -87,7 +87,7 @@ void PlaylistItem::sync() {
 
 PlaylistItem::operator bool() const
 {
-    return d;
+    return d && d->item.get();
 }
 
 
-- 
2.25.1



More information about the vlc-devel mailing list