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>
This commit is contained in:
Berthold Stoeger 2018-07-30 11:15:08 +02:00 committed by Dirk Hohndel
parent 63b65a7e20
commit 26901a8dbd
2 changed files with 9 additions and 6 deletions

View file

@ -185,6 +185,8 @@ private:
Ui::MainWindow ui;
QAction *actionNextDive;
QAction *actionPreviousDive;
QAction *undoAction;
QAction *redoAction;
#ifndef NO_USERMANUAL
UserManual *helpView;
#endif