[vlc-commits] qml: fix recent menu not working in no-ml mode
Pierre Lamot
git at videolan.org
Sun Jul 28 08:43:46 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jul 17 13:24:14 2019 +0200| [ecdae96f564de1d5d7895de6d54d1280ba37c79f] | committer: Jean-Baptiste Kempf
qml: fix recent menu not working in no-ml mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecdae96f564de1d5d7895de6d54d1280ba37c79f
---
modules/gui/qt/qml/menus/MediaMenu.qml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/qml/menus/MediaMenu.qml b/modules/gui/qt/qml/menus/MediaMenu.qml
index e8fb1dbf1c..3f7214f418 100644
--- a/modules/gui/qt/qml/menus/MediaMenu.qml
+++ b/modules/gui/qt/qml/menus/MediaMenu.qml
@@ -21,6 +21,8 @@ import QtQuick.Controls 2.4
import "qrc:///utils/" as Utils
Utils.MenuExt {
+ id: mediaMenu
+
Action { text: qsTr("Open &File..." ) ; onTriggered: dialogProvider.simpleOpenDialog(); icon.source:"qrc:/type/file-asym.svg" }
Action { text: qsTr( "&Open Multiple Files..." ); onTriggered: dialogProvider.openFileDialog(); icon.source:"qrc:/type/file-asym.svg"; }
Action { text: qsTr( "Open D&irectory" ); onTriggered: dialogProvider.PLOpenDir(); icon.source:"qrc:/type/folder-grey.svg"; shortcut: "Ctrl+F" }
@@ -54,7 +56,7 @@ Utils.MenuExt {
Utils.MenuItemExt {
text: mrl
onTriggered:{
- mainDropdownMenu.close() //needed since menuItem isn't a direct child of a menu
+ mediaMenu.close() //needed since menuItem isn't a direct child of a menu
mainPlaylistController.append([mrl], true)
}
More information about the vlc-commits
mailing list