diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-30 11:15:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:22:27 -0700 |
commit | 26901a8dbd91a18689199361541f9d1f90d56e4e (patch) | |
tree | 846acb461aaf30edf2ea68c0d357cd269ea643ba /desktop-widgets/mainwindow.h | |
parent | 63b65a7e20615d7e049ab09ae7dc6053d705c04b (diff) | |
download | subsurface-26901a8dbd91a18689199361541f9d1f90d56e4e.tar.gz |
Undo: disable undo- and redo-actions in edit mode
We have to avoid that undo/redo removes the currently edited
dive from under our feet. This code can be removed once proper
undo/redo (including editing) is implemented.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r-- | desktop-widgets/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 113f0699c..2f2b91a83 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -185,6 +185,8 @@ private: Ui::MainWindow ui; QAction *actionNextDive; QAction *actionPreviousDive; + QAction *undoAction; + QAction *redoAction; #ifndef NO_USERMANUAL UserManual *helpView; #endif |