mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
don't set negative amounts in amount field
This commit is contained in:
parent
17006e5285
commit
e7d24c31bd
1 changed files with 1 additions and 1 deletions
|
@ -933,7 +933,7 @@ class ElectrumWindow(QMainWindow):
|
|||
output = ('address', addr, sendable)
|
||||
dummy_tx = Transaction(inputs, [output])
|
||||
fee = self.wallet.estimated_fee(dummy_tx)
|
||||
self.amount_e.setAmount(sendable-fee)
|
||||
self.amount_e.setAmount(max(0,sendable-fee))
|
||||
self.amount_e.textEdited.emit("")
|
||||
self.fee_e.setAmount(fee)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue