mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: show warning message if more than one dive edited
On the MainTab, warn if more than one dive was edited. To this purpose, add a new KMessageWidget with an "OK" button that closes the message. Code is mostly a copy of the already existing "Editing dive" message. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
99dc528a10
commit
944a9aed54
3 changed files with 41 additions and 14 deletions
|
|
@ -75,6 +75,7 @@ slots:
|
|||
void on_tagWidget_editingFinished();
|
||||
void hideMessage();
|
||||
void closeMessage();
|
||||
void closeWarning();
|
||||
void displayMessage(QString str);
|
||||
void enableEdition(EditMode newEditMode = NONE);
|
||||
void updateTextLabels(bool showUnits = true);
|
||||
|
|
@ -92,6 +93,7 @@ private:
|
|||
int lastTabSelectedDiveTrip;
|
||||
dive_trip_t *currentTrip;
|
||||
QList<TabBase*> extraWidgets;
|
||||
void divesEdited(int num); // Opens a warning window if more than one dive was edited
|
||||
};
|
||||
|
||||
#endif // MAINTAB_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue