main_window: don't update history in offline mode

This commit is contained in:
Roman Zeyde 2015-03-31 09:33:14 +03:00
parent a7440fc89c
commit 43a4b68ee8
1 changed files with 3 additions and 0 deletions

View File

@ -689,6 +689,9 @@ class ElectrumWindow(QMainWindow):
for item in self.wallet.get_history(self.current_account): for item in self.wallet.get_history(self.current_account):
tx_hash, conf, value, timestamp, balance = item tx_hash, conf, value, timestamp, balance = item
time_str = _("unknown") time_str = _("unknown")
if conf is None and timestamp is None:
continue # skip history in offline mode
if conf > 0: if conf > 0:
time_str = self.format_time(timestamp) time_str = self.format_time(timestamp)
if conf == -1: if conf == -1: