From 2749d2a6cb40f03d89a174bd1006153a752dd9a4 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sat, 25 May 2024 23:43:19 +0400 Subject: [PATCH] Revert "Make sure that Open button becomes focused after enabling" This reverts commit d5bbd7582865789cc6b724c73cfa8ff9a2ff6d0d. --- apps/opencs/view/doc/filedialog.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/opencs/view/doc/filedialog.cpp b/apps/opencs/view/doc/filedialog.cpp index 7040c359e2..1b502c9d6c 100644 --- a/apps/opencs/view/doc/filedialog.cpp +++ b/apps/opencs/view/doc/filedialog.cpp @@ -177,8 +177,6 @@ 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