diff options
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 13f26e5bd..028627292 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -668,6 +668,7 @@ void MainTab::acceptChanges() mainWindow()->dive_list()->restoreSelection(); } mainWindow()->dive_list()->verticalScrollBar()->setSliderPosition(scrolledBy); + mainWindow()->dive_list()->setFocus(); } void MainTab::resetPallete() @@ -791,6 +792,7 @@ void MainTab::rejectChanges() mainWindow()->refreshDisplay(false); DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING); } + mainWindow()->dive_list()->setFocus(); } #undef EDIT_TEXT2 |