UI restructure: cleanup the code when canceling an edit

This was way too complicated because we used to edit a "live" dive that
was on the dive list. All we really need to do is systematically make
sure that all the widgets are in the correct state.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-06 12:36:25 -07:00
parent d97c49ba39
commit cd5b2a372f
3 changed files with 15 additions and 61 deletions

View file

@ -394,7 +394,7 @@ bool MainWindow::plannerStateClean()
void MainWindow::planCanceled()
{
showProfile();
refreshDisplay();
refreshDisplay(false);
}
void MainWindow::planCreated()