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
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
fieldContextMenu.popup()
|
if (!fieldRow.isLast) {
|
||||||
|
fieldContextMenu.popup()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fieldDialog.init(model, index)
|
fieldDialog.init(model, index)
|
||||||
|
|
Loading…
Reference in New Issue