From 64b014aefb2c69f20d1a15e4e011481a5f98f9da Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Sep 2013 23:02:53 -0500 Subject: Don't show the planner widget when adding a dive This looks like it might work, but since we keep recreating the dive, the info entered in the info pane is actually lost. But it's a step in the right direction. Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/diveplanner.cpp') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index d634aadf8..9a1f0cb3d 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -4,6 +4,7 @@ #include "modeldelegates.h" #include "ui_diveplanner.h" #include "mainwindow.h" +#include "maintab.h" #include "tableview.h" #include "graphicsview-common.h" @@ -1149,6 +1150,7 @@ void DivePlannerPointsModel::createTemporaryPlan() tempDive = NULL; char *errorString = NULL; plan(&diveplan, &cache, &tempDive, isPlanner(), &errorString); + mainWindow()->information()->updateDiveInfo(get_divenr(tempDive)); #if DEBUG_PLAN dump_plan(&diveplan); #endif -- cgit v1.2.3-70-g09d2