From 179615f3a9a7a657f9039e124865b2f449ddb703 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 14 Nov 2013 12:18:33 +0900 Subject: 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 --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') 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. -- cgit v1.2.3-70-g09d2