Improve editing of connection password

Previously only a new password was saved if the save password checkbox was checked, Which always
started in the unchecked state. Now when editing existing connection the save password checkbox now
reflects if a password has been saved. Only when the password field is edited the program will update
the saved password. If the save password checkbox is unchecked then clear the save password.
This commit is contained in:
eelke 2022-09-05 14:33:51 +02:00
parent 677302b5a7
commit da19c46d5e
7 changed files with 39 additions and 6 deletions

View file

@ -272,7 +272,7 @@ QString ConnectionConfig::makeLongDescription() const
return result;
}
QByteArray ConnectionConfig::encodedPassword() const
const QByteArray& ConnectionConfig::encodedPassword() const
{
return m_encodedPassword;
}