electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c33363c1e5f4c11ed1001dcdcd27fe08d2254544
parent 5fde89b689a9326d3e7a4fafd4a853afd9c00b52
Author: SomberNight <somber.night@protonmail.com>
Date:   Sat,  7 Jul 2018 23:26:00 +0200

fix #4042

Diffstat:
Mgui/qt/main_window.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -1128,7 +1128,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def on_fee_or_feerate(edit_changed, editing_finished): edit_other = self.feerate_e if edit_changed == self.fee_e else self.fee_e if editing_finished: - if not edit_changed.get_amount(): + if edit_changed.get_amount() is None: # This is so that when the user blanks the fee and moves on, # we go back to auto-calculate mode and put a fee back. edit_changed.setModified(False) @@ -1348,7 +1348,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): # actual fees often differ somewhat. if freeze_feerate or self.fee_slider.is_active(): displayed_feerate = self.feerate_e.get_amount() - if displayed_feerate: + if displayed_feerate is not None: displayed_feerate = quantize_feerate(displayed_feerate) else: # fallback to actual fee