aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-05 13:54:44 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-05 13:56:20 +0900
commiteaa0d647b7ed4f37bdab35cac8177a8e132e47da (patch)
treee56cd13537a54c83cd926cb858a6a7fdc6084cbe /qt-ui/mainwindow.cpp
parent9383693928b4393fd28bb52761c9cae4257e3829 (diff)
downloadsubsurface-eaa0d647b7ed4f37bdab35cac8177a8e132e47da.tar.gz
Don't force the DiveListView to be a tree when reloading
We should keep whatever view the user last used. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 2be60edb7..b712e1783 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -67,7 +67,7 @@ void MainWindow::refreshDisplay()
{
ui.InfoWidget->reload();
ui.globe->reload();
- ui.ListWidget->reload(DiveTripModel::TREE);
+ ui.ListWidget->reload(DiveTripModel::CURRENT);
ui.ListWidget->setFocus();
WSInfoModel *wsim = WSInfoModel::instance();
wsim->updateInfo();
@@ -825,7 +825,7 @@ void MainWindow::editCurrentDive()
{
struct dive *d = current_dive;
QString defaultDC(d->dc.model);
-
+
if (defaultDC == tr("manually added dive")){
disableDcShortcuts();
DivePlannerPointsModel::instance()->setPlanMode(false);
@@ -835,7 +835,6 @@ void MainWindow::editCurrentDive()
ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
}
else if (defaultDC == tr("Simulated Dive")){
-
+ // this looks like something is missing here
}
-
}