summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-31 20:59:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-31 21:08:57 -0700
commite93bf1e55953a7f95b4a0a5fb2a07e83e2a8c4c4 (patch)
tree4c6cf6f5d60f0672025356952b1826b7b6fea680 /qt-ui/mainwindow.cpp
parente74914fdd0f439d3584657147c81539d2a863955 (diff)
downloadsubsurface-e93bf1e55953a7f95b4a0a5fb2a07e83e2a8c4c4.tar.gz
Planner: add dive plan output area that replaces dive list
When switching to / from plan mode, we switch to show either the dive plan detail widget, or the dive list widget. So far this widget does nothing. This just makes sure it's there. 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, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 9a325cef4..910580e06 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -131,6 +131,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
ui.globe->reload();
if (doRecreateDiveList)
recreateDiveList();
+ ui.diveListPane->setCurrentIndex(0); // switch to the dive list
ui.ListWidget->setEnabled(true);
ui.ListWidget->setFocus();
WSInfoModel::instance()->updateInfo();
@@ -437,6 +438,7 @@ void MainWindow::on_actionDivePlanner_triggered()
// reload and then disable the dive list
ui.ListWidget->reload(DiveTripModel::CURRENT);
ui.ListWidget->setEnabled(false);
+ ui.diveListPane->setCurrentIndex(1); // switch to the plan output
}
void MainWindow::on_actionAddDive_triggered()