do not display unknown tx size as zero. fix slider

This commit is contained in:
ThomasV 2017-12-21 11:41:45 +01:00
parent 87cbe443ab
commit efc837b4aa
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {}