0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-19 20:02:18 +02:00

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

This commit is contained in:
BGM99 2023-12-03 02:58:41 +01:00 committed by Jonathan White
parent ce01f6d7cd
commit f77975a9f7

View File

@ -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();
}