[vlc-devel] [PATCH 06/18] qml: correctly add url media
Prince Gupta
guptaprince8832 at gmail.com
Thu Apr 1 14:29:41 UTC 2021
---
modules/gui/qt/network/qml/DiscoverUrlDisplay.qml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml b/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
index 23e1215f2b..a98852bcab 100644
--- a/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
+++ b/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
@@ -63,7 +63,10 @@ Widgets.NavigableFocusScope {
}
onAccepted: {
- mainPlaylistController.append([text], true)
+ if (urlListDisplay.status == Loader.Ready)
+ urlListDisplay.item.model.addAndPlay(text)
+ else
+ mainPlaylistController.append([text], true)
}
Keys.priority: Keys.AfterItem
--
2.27.0
More information about the vlc-devel
mailing list