desktop/tabwidgets: replace editMode by boolean

There was only one editMode left (MANUALLY_ADDED_DIVE).
Therefore replace by a flag. This makes the code more consistent,
because the conditions "editMode != NONE" and "editMode ==
MANUALLY_ADDED_DIVE) actually meant the same thing.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-18 22:42:47 +01:00
parent 3b9913d828
commit 20e7064658
2 changed files with 12 additions and 17 deletions

View file

@ -26,11 +26,6 @@ class TabBase;
class MainTab : public QTabWidget {
Q_OBJECT
public:
enum EditMode {
NONE,
MANUALLY_ADDED_DIVE
};
MainTab(QWidget *parent = 0);
~MainTab();
void clearTabs();
@ -74,7 +69,7 @@ slots:
void escDetected(void);
private:
Ui::MainTab ui;
EditMode editMode;
bool editMode;
bool ignoreInput; // When computionally editing fields, we have to ignore changed-signals
BuddyCompletionModel buddyModel;
DiveMasterCompletionModel diveMasterModel;