[vlc-devel] [PATCH 14/39] qml: correctly set properties of sort control when contentmodel is not available
    Prince Gupta 
    guptaprince8832 at gmail.com
       
    Thu Jan  7 11:50:10 UTC 2021
    
    
  
---
 modules/gui/qt/maininterface/qml/BannerSources.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml
index ec77ab7a15..cdfb9a85a5 100644
--- a/modules/gui/qt/maininterface/qml/BannerSources.qml
+++ b/modules/gui/qt/maininterface/qml/BannerSources.qml
@@ -245,8 +245,8 @@ Widgets.NavigableFocusScope {
                                 }
                             }
 
-                            sortKey: contentModel.sortCriteria
-                            sortOrder: contentModel.sortOrder
+                            sortKey: contentModel ? contentModel.sortCriteria : PlaylistControllerModel.SORT_KEY_NONE
+                            sortOrder: contentModel ? contentModel.sortOrder : undefined
                         }
                     }
 
-- 
2.25.1
    
    
More information about the vlc-devel
mailing list