[vlc-commits] qml: Only show sort icon if a sort model is available

Prince Gupta git at videolan.org
Fri May 29 12:00:45 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Mar 31 17:54:44 2020 +0530| [119a3c812ed4f5d1e01ae0fb0d1cead54e3b8319] | committer: Pierre Lamot

qml: Only show sort icon if a sort model is available

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

 modules/gui/qt/maininterface/qml/BannerSources.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml
index 9c32b57619..a6ebc3a0bf 100644
--- a/modules/gui/qt/maininterface/qml/BannerSources.qml
+++ b/modules/gui/qt/maininterface/qml/BannerSources.qml
@@ -223,7 +223,7 @@ Widgets.NavigableFocusScope {
 
                             popupAlignment: Qt.AlignLeft | Qt.AlignBottom
 
-                            visible: !!root.contentModel
+                            visible: root.sortModel !== undefined && root.sortModel.length > 1
                             enabled: visible
 
                             onSortSelected: {



More information about the vlc-commits mailing list