1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

[iOS] clear focus in launcher only when something has focus

This commit is contained in:
Andrey Filipenkov 2022-10-01 12:37:23 +03:00
parent b766edb6af
commit 796845d173

View File

@ -92,7 +92,8 @@ MainWindow::MainWindow(QWidget * parent)
connect(ui->tabSelectList, &QListWidget::currentRowChanged, [this](int i) {
#ifdef Q_OS_IOS
qApp->focusWidget()->clearFocus();
if(auto widget = qApp->focusWidget())
widget->clearFocus();
#endif
ui->tabListWidget->setCurrentIndex(i);
});