mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: implement undelete
This code is very similar to the undo code in the desktop UI, but untangling that from the desktop seemed massive overkill; we don't have lists of dives to delete and undelete here - so this is actually much simpler and easier to maintain (I hope). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e39e9eee3b
commit
abab031ed2
3 changed files with 59 additions and 3 deletions
|
@ -92,6 +92,7 @@ public slots:
|
|||
|
||||
void saveChanges();
|
||||
void deleteDive(int id);
|
||||
void undoDelete(int id);
|
||||
QString addDive();
|
||||
void addDiveAborted(int id);
|
||||
void applyGpsData();
|
||||
|
@ -125,6 +126,8 @@ private:
|
|||
static QMLManager *m_instance;
|
||||
QNetworkReply *reply;
|
||||
QNetworkRequest request;
|
||||
struct dive *deletedDive;
|
||||
struct dive_trip *deletedTrip;
|
||||
|
||||
credentialStatus_t m_credentialStatus;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue