mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/dive-list: allow moving dives between trips
A dive that is already in a trip can directly be moved into the trip above or below. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
476ecb8d72
commit
c8b55ddb76
1 changed files with 2 additions and 2 deletions
|
@ -262,14 +262,14 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
property QtObject addDiveToTripAboveAction: Kirigami.Action {
|
||||
text: visible ? qsTr ("Add dive %1 to trip above").arg(currentItem.myData.number) : ""
|
||||
visible: currentItem && currentItem.myData && !currentItem.myData.diveInTrip && currentItem.myData.tripAbove !== -1
|
||||
visible: currentItem && currentItem.myData && currentItem.myData.tripAbove !== -1
|
||||
onTriggered: {
|
||||
manager.addDiveToTrip(currentItem.myData.id, currentItem.myData.tripAbove)
|
||||
}
|
||||
}
|
||||
property QtObject addDiveToTripBelowAction: Kirigami.Action {
|
||||
text: visible ? qsTr ("Add dive %1 to trip below").arg(currentItem.myData.number) : ""
|
||||
visible: currentItem && currentItem.myData && !currentItem.myData.diveInTrip && currentItem.myData.tripBelow !== -1
|
||||
visible: currentItem && currentItem.myData && currentItem.myData.tripBelow !== -1
|
||||
onTriggered: {
|
||||
manager.addDiveToTrip(currentItem.myData.id, currentItem.myData.tripBelow)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue