aboutsummaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/preferences.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtk3/preferences.py')
-rw-r--r--deluge/ui/gtk3/preferences.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/deluge/ui/gtk3/preferences.py b/deluge/ui/gtk3/preferences.py
index 59b2226..d913010 100644
--- a/deluge/ui/gtk3/preferences.py
+++ b/deluge/ui/gtk3/preferences.py
@@ -1409,8 +1409,8 @@ class Preferences(component.Component):
def dialog_finished(response_id):
def update_ok(rc):
- model.set_value(itr, ACCOUNTS_PASSWORD, dialog.get_username())
- model.set_value(itr, ACCOUNTS_LEVEL, dialog.get_authlevel())
+ model.set_value(itr, ACCOUNTS_PASSWORD, dialog.account.username)
+ model.set_value(itr, ACCOUNTS_LEVEL, dialog.account.authlevel)
def update_fail(failure):
ErrorDialog(
@@ -1422,7 +1422,9 @@ class Preferences(component.Component):
if response_id == Gtk.ResponseType.OK:
client.core.update_account(
- dialog.get_username(), dialog.get_password(), dialog.get_authlevel()
+ dialog.account.username,
+ dialog.account.password,
+ dialog.account.authlevel,
).addCallback(update_ok).addErrback(update_fail)
dialog.run().addCallback(dialog_finished)