Browse Source

confirmation dialog before sending large amounts

283
ThomasV 12 years ago
parent
commit
6645bc3505
  1. 5
      gui/gui_classic.py

5
gui/gui_classic.py

@ -909,6 +909,11 @@ class ElectrumWindow(QMainWindow):
QMessageBox.warning(self, _('Error'), _("This transaction requires a higher fee, or it will not be propagated by the network."), _('OK')) QMessageBox.warning(self, _('Error'), _("This transaction requires a higher fee, or it will not be propagated by the network."), _('OK'))
return return
confirm_amount = self.config.get('confirm_amount', 100000000)
if amount >= confirm_amount:
if not self.question("send %s to %s?"%(self.format_amount(amount) + ' '+ self.base_unit(), to_address)):
return
self.run_hook('send_tx', tx) self.run_hook('send_tx', tx)
if label: if label:

Loading…
Cancel
Save