diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-19 20:23:40 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:53:05 -0800 |
commit | 029522880ff639d983a372648eb3c053bce8e9ce (patch) | |
tree | a6a353732a11e8791453aed7c378fd78e2795ba4 /qt-ui/maintab.cpp | |
parent | 29a19e2e84ddf0292c021d636c8183c675d47499 (diff) | |
download | subsurface-029522880ff639d983a372648eb3c053bce8e9ce.tar.gz |
When saving / canceling edition, focus back to the Dive List
When saving / canceling the edition, focus was still being kept on the
current selected widget. not good. :) this patch makes the DiveList
keep the focus after a edit.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-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 |