diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index f2a2276be..8b012da90 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -378,9 +378,9 @@ void MainWindow::createFakeDiveForAddAndPlan() dive->longitude.udeg = 0; record_dive(dive); // select this new dive (but remember the old selection - ui.ListWidget->reload(DiveTripModel::CURRENT); ui.ListWidget->rememberSelection(); ui.ListWidget->unselectDives(); + ui.ListWidget->reload(DiveTripModel::CURRENT); ui.ListWidget->selectDives(QList<int>() << dive_table.nr - 1); ui.InfoWidget->updateDiveInfo(selected_dive); } |