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:
parent
677302b5a7
commit
da19c46d5e
7 changed files with 39 additions and 6 deletions
|
|
@ -117,9 +117,10 @@ void ConnectionController::saveConnection(ConnectionConfigurationWidget &w)
|
|||
{
|
||||
auto cc = w.data();
|
||||
auto grp = w.group();
|
||||
if (w.savePassword()) {
|
||||
if (w.savePassword())
|
||||
encryptPassword(cc);
|
||||
}
|
||||
if (w.clearPassword())
|
||||
cc.setEncodedPassword({});
|
||||
m_connectionTreeModel->save(grp, cc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue