Commit 7e04147d authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Added a delete key shortcut to delete currently viewed incidence

parent 7f5ffef8
Pipeline #101960 passed with stage
in 6 minutes and 3 seconds
......@@ -127,6 +127,16 @@ Kirigami.ApplicationWindow {
}
}
QQC2.Action {
id: deleteIncidenceAction
shortcut: "Delete"
onTriggered: {
if(root.openOccurrence) {
root.setUpDelete(incidenceInfo.incidenceData.incidencePtr, incidenceInfo.incidenceData.startTime);
}
}
}
function switchView(newViewComponent) {
if(pageStack.layers.depth > 1) {
pageStack.layers.pop(pageStack.layers.initialItem);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment