SetFocus only works if the widget is enabled

One could argue that this makes sense...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-27 15:32:45 -07:00
parent 1f2159dd0c
commit eb59b97c2b

View file

@ -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) {