Fix focus loss on save when the widget is not visible anymore

This commit is contained in:
BGM99 authored and Jonathan White committed 2024-02-04 11:50:52 -05:00
1 parent 53d06f127d
commit 99e42b1fce
1 file changed
+1 -1
+1 -1
View File
@@ -2155,7 +2155,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();
}