Quick GUI: Prevent context menu on last, empty row
This commit is contained in:
parent
7fee73cf29
commit
5d36b93b69
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue