aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-27 15:32:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-27 15:32:45 -0700
commiteb59b97c2b150a123c855165fc2659004f2206f5 (patch)
tree8d376987ad9042e3471e34cf5c337cc7f0e68b79 /qt-ui
parent1f2159dd0ce9f5007eb1e38f34c82222cace649d (diff)
downloadsubsurface-eb59b97c2b150a123c855165fc2659004f2206f5.tar.gz
SetFocus only works if the widget is enabled
One could argue that this makes sense... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index ecc04a58c..7bf1ce6ec 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -130,8 +130,8 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
ui.globe->reload();
if (doRecreateDiveList)
recreateDiveList();
- ui.ListWidget->setFocus();
ui.ListWidget->setEnabled(true);
+ ui.ListWidget->setFocus();
WSInfoModel::instance()->updateInfo();
// refresh the yearly stats if the window has an instance
if (yearlyStats) {