From 1a3474ff09bb34f58fa84f2f93e73403d6e5429b Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Thu, 29 Apr 2021 16:35:32 +0200 Subject: [PATCH] Immediately open a digital library file after double clicking on it CURA-8141 --- .../DigitalLibrary/resources/qml/OpenProjectFilesPage.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml b/plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml index e1918b3da7..5b237a3e48 100644 --- a/plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml +++ b/plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml @@ -65,6 +65,11 @@ Item model: manager.digitalFactoryFileModel visible: model.count != 0 && manager.retrievingFileStatus != DF.RetrievalStatus.InProgress selectionMode: OldControls.SelectionMode.SingleSelection + onDoubleClicked: + { + manager.setSelectedFileIndices([row]); + openFilesButton.clicked(); + } OldControls.TableViewColumn {