diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:32:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:32:45 -0700 |
commit | eb59b97c2b150a123c855165fc2659004f2206f5 (patch) | |
tree | 8d376987ad9042e3471e34cf5c337cc7f0e68b79 /qt-ui | |
parent | 1f2159dd0ce9f5007eb1e38f34c82222cace649d (diff) | |
download | subsurface-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.cpp | 2 |
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) { |