mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/undo: create undo-action and connect to undo of dive deletion
Still buggy: Removing a dive followed by undo shows the wrong dive in the list. But clicking on it gives the correct dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c0095f690f
commit
9fb52cc45c
2 changed files with 6 additions and 16 deletions
|
@ -19,6 +19,8 @@
|
|||
#include "core/settings/qPrefCloudStorage.h"
|
||||
#include "core/subsurface-qt/divelistnotifier.h"
|
||||
|
||||
class QAction;
|
||||
|
||||
class QMLManager : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString logText READ logText WRITE setLogText NOTIFY logTextChanged)
|
||||
|
@ -264,6 +266,7 @@ private:
|
|||
bool m_showNonDiveComputers;
|
||||
struct dive *m_copyPasteDive = NULL;
|
||||
struct dive_components what;
|
||||
QAction *undoAction;
|
||||
|
||||
bool verifyCredentials(QString email, QString password, QString pin);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue