From 43a4b68ee83ff26aa26530ab8f0081669f5f5a5b Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 31 Mar 2015 09:33:14 +0300 Subject: [PATCH] main_window: don't update history in offline mode --- gui/qt/main_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 9429f3b2c..ddbd2f7f8 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -689,6 +689,9 @@ class ElectrumWindow(QMainWindow): for item in self.wallet.get_history(self.current_account): tx_hash, conf, value, timestamp, balance = item time_str = _("unknown") + if conf is None and timestamp is None: + continue # skip history in offline mode + if conf > 0: time_str = self.format_time(timestamp) if conf == -1: