From 3d4a16b5c8e446da36afc30ddec85b5612635f21 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 28 Sep 2013 11:54:48 +0200 Subject: [PATCH] fix is_seeded --- gui/qt/main_window.py | 4 ++-- lib/wallet.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index c3f23fe8e..6171e6714 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1103,9 +1103,9 @@ class ElectrumWindow(QMainWindow): def create_account_menu(self, position, k, item): menu = QMenu() if item.isExpanded(): - menu.addAction(_("Reduce"), lambda: item.setExpanded(False)) + menu.addAction(_("Minimize"), lambda: item.setExpanded(False)) else: - menu.addAction(_("Expand"), lambda: item.setExpanded(True)) + menu.addAction(_("Maximize"), lambda: item.setExpanded(True)) menu.addAction(_("Rename"), lambda: self.edit_account_label(k)) menu.addAction(_("View details"), lambda: self.show_account_details(k)) menu.exec_(self.receive_list.viewport().mapToGlobal(position)) diff --git a/lib/wallet.py b/lib/wallet.py index 6bebc530e..f4aa4a3bf 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -500,6 +500,9 @@ class Wallet: return roots def is_seeded(self, account): + if type(account) is int: + return self.seed is not None + for root in self.get_roots(account): if root not in self.master_private_keys.keys(): return False