diff options
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |