mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
UI restructure
Don't clear out the model after we already set up the cylinders. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c728b4b7bb
commit
9b4bd80e84
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue