From f77975a9f7da6698825b6ff8bc17a89f53ac070c Mon Sep 17 00:00:00 2001 From: BGM99 <45606744+BGM99@users.noreply.github.com> Date: Sun, 3 Dec 2023 02:58:41 +0100 Subject: [PATCH] Fix focus loss on save when the widget is not visible anymore --- src/gui/DatabaseWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index c9dce441d..33fcd4571 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -2189,7 +2189,7 @@ bool DatabaseWidget::performSave(QString& errorMessage, const QString& fileName) m_groupView->setDisabled(false); m_tagView->setDisabled(false); - if (focusWidget) { + if (focusWidget && focusWidget->isVisible()) { focusWidget->setFocus(); }