Changeset 74a5511 in subsurface


Ignore:
Timestamp:
Apr 15, 2017, 1:50:18 PM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
a19f9c2
Parents:
cc6c41c8
git-author:
Dirk Hohndel <dirk@…> (04/15/17 13:49:16)
git-committer:
Dirk Hohndel <dirk@…> (04/15/17 13:50:18)
Message:

QML UI: fix broken delete from dive details page

Trying to close the non-existing context drawer caused the function
to abort (and consequently not to delete the dive).

Fixes #309

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/DiveDetails.qml

    r052be69 r74a5511  
    7676                iconName: "trash-empty"
    7777                onTriggered: {
    78                         contextDrawer.close()
    7978                        var deletedId = diveDetailsListView.currentItem.modelData.dive.id
    8079                        var deletedIndex = diveDetailsListView.currentIndex
     
    8584                                                        diveDetailsListView.currentIndex = manager.undoDelete(deletedId) ? deletedIndex : diveDetailsListView.currentIndex
    8685                                                });
    87                         contextDrawer.close() // at least one iPhone user has the drawer pop open after delete
    8886                }
    8987        }
Note: See TracChangeset for help on using the changeset viewer.