[vlc-commits] qt: playlistItem bool operator return true when it has an actual content

Pierre Lamot git at videolan.org
Mon Sep 28 09:38:03 CEST 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Sep 22 15:07:48 2020 +0200| [9a2c5edd4f57804ddb80d5529c468320527d8dcf] | committer: Pierre Lamot

qt: playlistItem bool operator return true when it has an actual content

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

 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();
 }
 
 



More information about the vlc-commits mailing list