diff --git a/apps/opencs/view/doc/filedialog.cpp b/apps/opencs/view/doc/filedialog.cpp index 1b502c9d6c..7040c359e2 100644 --- a/apps/opencs/view/doc/filedialog.cpp +++ b/apps/opencs/view/doc/filedialog.cpp @@ -177,6 +177,8 @@ void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString& name, bool) mAdjusterWidget->setName("", true); ui.projectButtonBox->button(QDialogButtonBox::Ok)->setEnabled(success); + if (success) + ui.projectButtonBox->button(QDialogButtonBox::Ok)->setFocus(); } QString CSVDoc::FileDialog::filename() const