summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-14 12:18:33 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-14 12:18:33 +0900
commit179615f3a9a7a657f9039e124865b2f449ddb703 (patch)
tree282918ce20917e97b7632c2f8248dddeae9dd519 /qt-ui
parenta93b6011f16dbb150c3701cec888f7b689c0fa6c (diff)
downloadsubsurface-179615f3a9a7a657f9039e124865b2f449ddb703.tar.gz
Switch to the Dive Notes tab when manually adding a dive
This gives a more consistent and expected user experience. Fixes #236 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index a73e89434..527441083 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -296,6 +296,7 @@ void MainWindow::on_actionAddDive_triggered()
// this isn't in the UI yet, so let's call the C helper function - we'll fix this up when
// accepting the dive
select_dive(get_divenr(dive));
+ ui.InfoWidget->setCurrentIndex(0);
ui.InfoWidget->updateDiveInfo(selected_dive);
ui.InfoWidget->addDiveStarted();
ui.stackedWidget->setCurrentIndex(PLANNERPROFILE); // Planner.