summaryrefslogtreecommitdiffstats
path: root/iw/account_gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'iw/account_gui.py')
-rw-r--r--iw/account_gui.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py
index 6800303d5..7fa05f38c 100644
--- a/iw/account_gui.py
+++ b/iw/account_gui.py
@@ -102,11 +102,10 @@ class AccountWindow (InstallWindow):
def getSelectedIter(self):
selection = self.userlist.get_selection()
- rc = selection.get_selected()
- if rc is None:
+ (model, iter) = selection.get_selected()
+ if iter is None:
return None
- model, iter = rc
return iter
def getSelectedData(self):
@@ -279,12 +278,10 @@ class AccountWindow (InstallWindow):
def deleteUser(self, *args):
selection = self.userlist.get_selection()
- rc = selection.get_selected()
- if rc is None:
+ (model, iter) = selection.get_selected()
+ if iter is None:
return
- model, iter = rc
-
accountName = self.userstore.get_value(iter, 0)
del self.passwords[accountName]