fix save connection password on uninitialized manager did not save

it did initialize the manager
This commit is contained in:
eelke 2022-09-05 08:02:00 +02:00
parent 3f41fc07c3
commit df24564d6b
2 changed files with 10 additions and 1 deletions

View file

@ -252,7 +252,7 @@ bool ConnectionController::UnlockPasswordManagerIfNeeded()
if (m_passwordManager->initialized(user_cfg_db))
{
if (!m_passwordManager->locked())
return true;
return true;
while (true)
{
@ -269,7 +269,10 @@ bool ConnectionController::UnlockPasswordManagerIfNeeded()
}
}
else
{
InitializePasswordManager();
return true;
}
return false;
}

View file

@ -0,0 +1,6 @@
---
fixes:
- |
Fix that when saving the password of a connection to an uninitialized password
manager the program did not save the password. It would correctly initialize
the password manager and saving worked the second time.