From 5d36b93b694318ff296fed688a5e6282af68756e Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Mon, 21 Jan 2019 18:15:21 +0100 Subject: [PATCH] Quick GUI: Prevent context menu on last, empty row --- qml/FieldsPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/FieldsPage.qml b/qml/FieldsPage.qml index d0c507f..aaaa3e3 100644 --- a/qml/FieldsPage.qml +++ b/qml/FieldsPage.qml @@ -136,7 +136,9 @@ Kirigami.ScrollablePage { acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { if (mouse.button === Qt.RightButton) { - fieldContextMenu.popup() + if (!fieldRow.isLast) { + fieldContextMenu.popup() + } return } fieldDialog.init(model, index)