Make sure that Open button becomes focused after enabling

i-have-no-land-and-i-must-scream
Andrei Kortunov 8 months ago
parent b0930158df
commit d5bbd75828

@ -177,6 +177,8 @@ void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString& name, bool)
mAdjusterWidget->setName("", true); mAdjusterWidget->setName("", true);
ui.projectButtonBox->button(QDialogButtonBox::Ok)->setEnabled(success); ui.projectButtonBox->button(QDialogButtonBox::Ok)->setEnabled(success);
if (success)
ui.projectButtonBox->button(QDialogButtonBox::Ok)->setFocus();
} }
QString CSVDoc::FileDialog::filename() const QString CSVDoc::FileDialog::filename() const

Loading…
Cancel
Save