1
0

set self.wallet to None in plugin constructor

This commit is contained in:
ThomasV
2015-02-17 11:39:06 +01:00
parent 0934976f3a
commit f302c90649
2 changed files with 3 additions and 1 deletions

View File

@@ -495,7 +495,6 @@ class Plugin(BasePlugin):
@hook
def load_wallet(self, wallet):
self.wallet = wallet
tx_list = {}
for item in self.wallet.get_tx_history(self.wallet.storage.get("current_account", None)):
tx_hash, conf, is_mine, value, fee, balance, timestamp = item
@@ -555,6 +554,8 @@ class Plugin(BasePlugin):
return
if not self.resp_hist:
return
if not self.wallet:
return
self.win.is_edit = True
self.win.history_list.setColumnCount(6)