aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/manage_accounts
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/manage_accounts')
-rw-r--r--main/src/ui/manage_accounts/dialog.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala
index fb226702..d9939c8f 100644
--- a/main/src/ui/manage_accounts/dialog.vala
+++ b/main/src/ui/manage_accounts/dialog.vala
@@ -44,8 +44,10 @@ public class Dialog : Gtk.Dialog {
image_button.clicked.connect(show_select_avatar);
alias_hybrid.entry.changed.connect(() => { selected_account.alias = alias_hybrid.text; });
password_hybrid.entry.changed.connect(() => {
- if (password_hybrid.text != "************") {
- selected_account.password = password_hybrid.text;
+ string? pw_buffer;
+ pw_buffer = password_hybrid.text;
+ if (pw_buffer != null && pw_buffer.length > 0 && pw_buffer != "************") {
+ selected_account.password = pw_buffer;
}
});