From eb59b97c2b150a123c855165fc2659004f2206f5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 27 May 2014 15:32:45 -0700 Subject: SetFocus only works if the widget is enabled One could argue that this makes sense... Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') 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) { -- cgit v1.2.3-70-g09d2