From d8cddc0b09de1658672f62d90479aabcd522ec43 Mon Sep 17 00:00:00 2001 From: Pierre Lamot Date: Thu, 30 Jan 2020 18:07:11 +0100 Subject: [PATCH] qml: move dblClick handler from AudioGridItem to MusicAlbums the behavior is not shared amongst the view where it's used (different behavior in the Genre view) Signed-off-by: Jean-Baptiste Kempf --- modules/gui/qt/medialibrary/qml/AudioGridItem.qml | 1 - modules/gui/qt/medialibrary/qml/MusicAlbums.qml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/medialibrary/qml/AudioGridItem.qml b/modules/gui/qt/medialibrary/qml/AudioGridItem.qml index ebd0d472b4..84eb37ff19 100644 --- a/modules/gui/qt/medialibrary/qml/AudioGridItem.qml +++ b/modules/gui/qt/medialibrary/qml/AudioGridItem.qml @@ -30,5 +30,4 @@ Widgets.GridItem { isVideo: false pictureWidth: VLCStyle.cover_normal pictureHeight: VLCStyle.cover_normal - onItemDoubleClicked: if ( model.id !== undefined ) { medialib.addAndPlay( model.id ) } } diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbums.qml b/modules/gui/qt/medialibrary/qml/MusicAlbums.qml index cee4bdf1fb..3d4e998dd8 100644 --- a/modules/gui/qt/medialibrary/qml/MusicAlbums.qml +++ b/modules/gui/qt/medialibrary/qml/MusicAlbums.qml @@ -148,6 +148,10 @@ Widgets.NavigableFocusScope { gridView_id.currentIndex = index gridView_id.forceActiveFocus() } + + onItemDoubleClicked: { + if ( model.id !== undefined ) { medialib.addAndPlay( model.id ) } + } } expandDelegate: MusicAlbumsGridExpandDelegate { -- 2.11.4.GIT