mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Merge pull request #1012 from kambala-decapitator/ios-launcher-prevent-autofocus
prevent keyboard appearing automatically after switching tab
This commit is contained in:
commit
99502c97d0
@ -90,8 +90,12 @@ MainWindow::MainWindow(QWidget * parent)
|
||||
connect(ui->stackedWidgetPage2, &CModListView::extraResolutionsEnabledChanged,
|
||||
ui->settingsView, &CSettingsView::fillValidResolutions);
|
||||
|
||||
connect(ui->tabSelectList, SIGNAL(currentRowChanged(int)),
|
||||
ui->tabListWidget, SLOT(setCurrentIndex(int)));
|
||||
connect(ui->tabSelectList, &QListWidget::currentRowChanged, [this](int i) {
|
||||
#ifdef Q_OS_IOS
|
||||
qApp->focusWidget()->clearFocus();
|
||||
#endif
|
||||
ui->tabListWidget->setCurrentIndex(i);
|
||||
});
|
||||
|
||||
if(settings["launcher"]["updateOnStartup"].Bool())
|
||||
UpdateDialog::showUpdateDialog(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user