Planner: better handle the temporary dive used for planning

This still crashes when you abort the plan.
And when you accept the plan, the profile stays stuck in PLAN mode.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-27 15:02:45 -07:00
parent 7feea7ccfa
commit d1cd1eb933
3 changed files with 29 additions and 6 deletions

View file

@ -151,6 +151,7 @@ slots:
void recreateDiveList();
void showProfile();
void editCurrentDive();
void removeFakeDiveForAddAndPlan();
private:
Ui::MainWindow ui;
@ -175,6 +176,7 @@ private:
bool plannerStateClean();
void createFakeDiveForAddAndPlan();
int fakeDiveId;
};
#endif // MAINWINDOW_H