URI: 
       tqt CPFP: handle empty fee field - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 29cf01524a286b3a6c884a6a05df12a8b759c12f
   DIR parent 1059191ebcb6be917d38ab99187f6658007d9c4e
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Tue,  7 Jan 2020 17:59:17 +0100
       
       qt CPFP: handle empty fee field
       
       fixes #5875
       
       Diffstat:
         M electrum/gui/qt/main_window.py      |       9 +++++++--
       
       1 file changed, 7 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -2908,10 +2908,13 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
                combined_fee = QLabel('')
                combined_feerate = QLabel('')
                def on_fee_edit(x):
       -            out_amt = max_fee - fee_e.get_amount()
       +            fee_for_child = fee_e.get_amount()
       +            if fee_for_child is None:
       +                return
       +            out_amt = max_fee - fee_for_child
                    out_amt_str = (self.format_amount(out_amt) + ' ' + self.base_unit()) if out_amt else ''
                    output_amount.setText(out_amt_str)
       -            comb_fee = parent_fee + fee_e.get_amount()
       +            comb_fee = parent_fee + fee_for_child
                    comb_fee_str = (self.format_amount(comb_fee) + ' ' + self.base_unit()) if comb_fee else ''
                    combined_fee.setText(comb_fee_str)
                    comb_feerate = comb_fee / total_size * 1000
       t@@ -2946,6 +2949,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
                if not d.exec_():
                    return
                fee = fee_e.get_amount()
       +        if fee is None:
       +            return  # fee left empty, treat is as "cancel"
                if fee > max_fee:
                    self.show_error(_('Max fee exceeded'))
                    return