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:
parent
b766edb6af
commit
796845d173
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user