From efc837b4aae2015028dd66e1928c05bf8430bd67 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 21 Dec 2017 11:41:45 +0100 Subject: [PATCH] do not display unknown tx size as zero. fix slider --- 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 95a306fc5..26ccf6aba 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1093,7 +1093,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): class TxSizeLabel(QLabel): def setAmount(self, byte_size): - self.setText('x %s bytes =' % byte_size) + self.setText(('x %s bytes =' % byte_size) if byte_size else '') self.size_e = TxSizeLabel() self.size_e.setAlignment(Qt.AlignCenter) @@ -1630,6 +1630,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.fee_e, self.feerate_e]: e.setText('') e.setFrozen(False) + self.fee_slider.activate() self.size_e.setAmount(0) self.set_pay_from([]) self.tx_external_keypairs = {}