[vlc-commits] [Git][videolan/vlc][master] qt: prevent segmentation fault from Qt 6.3 to Qt 6.5.2

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 9 09:01:00 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0fdff3a9 by Fatih Uzunoglu at 2023-09-09T08:39:48+00:00
qt: prevent segmentation fault from Qt 6.3 to Qt 6.5.2

QTBUG-116049

- - - - -


1 changed file:

- modules/gui/qt/maininterface/qml/BannerSources.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/BannerSources.qml
=====================================
@@ -78,15 +78,7 @@ FocusScope {
     BindingCompat {
         property: "searchPattern"
         value: searchBox.searchPattern
-        when: !!contentModel
-
-        Component.onCompleted: {
-            // restoreMode is only available in Qt >= 5.14
-            if ("restoreMode" in this)
-                this.restoreMode = Binding.RestoreBindingOrValue
-
-            target = Qt.binding(function() { return !!contentModel ? contentModel : null })
-        }
+        target: (contentModel instanceof QtObject) ? contentModel : null
     }
 
     Widgets.AcrylicBackground {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0fdff3a9802e6c06eb8fa2a8ee984ca94351f8a6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0fdff3a9802e6c06eb8fa2a8ee984ca94351f8a6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list