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
|
|
@ -34,7 +34,9 @@ public:
|
|||
void setData(const ConnectionConfig &cfg);
|
||||
ConnectionConfig data() const;
|
||||
QString group() const;
|
||||
|
||||
bool savePassword() const;
|
||||
bool clearPassword() const;
|
||||
|
||||
public slots:
|
||||
void testConnection();
|
||||
|
|
@ -45,6 +47,7 @@ private:
|
|||
|
||||
QUuid m_uuid;
|
||||
QByteArray encodedPassword;
|
||||
bool passwordChanged;
|
||||
|
||||
QLabel *lblGroup;
|
||||
QComboBox *cmbbxGroup;
|
||||
|
|
@ -77,6 +80,7 @@ private:
|
|||
QFormLayout *formLayout;
|
||||
|
||||
void handleTestResult(TestConnectionResult result);
|
||||
void passwordEdited(const QString &);
|
||||
};
|
||||
|
||||
#endif // CONNECTIONCONFIGURATIONWIDGET_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue