summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-21 15:52:24 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-22 09:11:50 +0900
commit3661f291a4d88448c3339bdd3c2d3ad8c6090256 (patch)
tree11589481d1430d51548d095389dd63ca1daefbed /qt-ui/mainwindow.cpp
parentd73fdbc84b2b258f06fa8f2745f85545ef414624 (diff)
downloadsubsurface-3661f291a4d88448c3339bdd3c2d3ad8c6090256.tar.gz
Enable editing the 'Add dive' from the new profile.
This is highly broken in many ways - but it's the right first step. I ported two of the most important methods from the old profile and now if you are in add dive mode, double clicking on the new profile will correctly add a handler on the planned dive. To see and move the handler around, however, you need to activate the old planner. Next step: add the handlers on the new profile. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index b00d5e814..c56d02e71 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -408,11 +408,11 @@ void MainWindow::on_actionAddDive_triggered()
ui.InfoWidget->setCurrentIndex(0);
ui.InfoWidget->updateDiveInfo(selected_dive);
ui.InfoWidget->addDiveStarted();
- ui.stackedWidget->setCurrentIndex(PLANNERPROFILE); // Planner.
ui.infoPane->setCurrentIndex(MAINTAB);
DivePlannerPointsModel::instance()->clear();
DivePlannerPointsModel::instance()->createSimpleDive();
ui.ListWidget->reload(DiveTripModel::CURRENT);
+ ui.newProfile->setAddState();
}
void MainWindow::on_actionRenumber_triggered()