From 9b4bd80e847360e56c10bde6e2b96a1d1c2585f2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Jul 2014 06:52:50 -0700 Subject: UI restructure Don't clear out the model after we already set up the cylinders. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 2fc700752..fc7447860 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -497,6 +497,7 @@ void MainWindow::on_actionAddDive_triggered() displayed_dive.dc.model = "manually added dive"; // don't translate! this is stored in the XML file // setup the dive cylinders + DivePlannerPointsModel::instance()->clear(); DivePlannerPointsModel::instance()->setupCylinders(); // now show the mostly empty main tab @@ -509,7 +510,6 @@ void MainWindow::on_actionAddDive_triggered() ui.infoPane->setCurrentIndex(MAINTAB); ui.newProfile->setAddState(); - DivePlannerPointsModel::instance()->clear(); DivePlannerPointsModel::instance()->createSimpleDive(); ui.newProfile->plotDive(); } -- cgit v1.2.3-70-g09d2