From d30955a7fa915ea8a1413552b88ceb5c47753d2d Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 29 May 2015 17:38:05 +0900 Subject: [PATCH] Two more fixes Put fee_per_kb to zero rather than None when edit is blank Changing the set of frozen addresses should update the fee --- gui/qt/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index bc7cff088..ac9abbdd4 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1299,6 +1299,7 @@ class ElectrumWindow(QMainWindow): elif addr not in self.wallet.frozen_addresses and freeze: self.wallet.freeze(addr) self.update_address_tab() + self.update_fee(False) def create_list_tab(self, l): w = QWidget() @@ -2529,7 +2530,7 @@ class ElectrumWindow(QMainWindow): if not self.config.is_modifiable('fee_per_kb'): for w in [fee_e, fee_label]: w.setEnabled(False) def on_fee(is_done): - self.wallet.set_fee(fee_e.get_amount(), is_done) + self.wallet.set_fee(fee_e.get_amount() or 0, is_done) if not is_done: self.update_fee(False) fee_e.editingFinished.connect(lambda: on_fee(True))