Browse Source

Merge #887: Qt: Clear single send form after successful send

79493749d9 Clear single send form after successful send (Kristaps Kaupe)

Pull request description:

  Helps to avoid accidental sending twice to the same recipient and also clears fields for the user who needed to do it manually if doing more than one send in a single JoinMarketQt session.

Top commit has no ACKs.

Tree-SHA512: 1f79663d1d24718d038972d3b5d670f1a00f038b5169a627c82657154b3587c515b7c9fe99924208dc21e32ddb2e38d0cb8bab54cbe359585e0e459d94f5bbfc
master
Kristaps Kaupe 5 years ago
parent
commit
1c86cd78e2
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      scripts/joinmarket-qt.py

2
scripts/joinmarket-qt.py

@ -720,6 +720,7 @@ class SpendTab(QWidget):
return False return False
def infoDirectSend(self, msg): def infoDirectSend(self, msg):
self.clearFields(None)
JMQtMessageBox(self, msg, title="Success") JMQtMessageBox(self, msg, title="Success")
def errorDirectSend(self, msg): def errorDirectSend(self, msg):
@ -996,6 +997,7 @@ class SpendTab(QWidget):
mainWindow.statusBar().showMessage( mainWindow.statusBar().showMessage(
"Transaction seen on network: " + self.taker.txid) "Transaction seen on network: " + self.taker.txid)
if self.spendstate.typestate == 'single': if self.spendstate.typestate == 'single':
self.clearFields(None)
JMQtMessageBox(self, "Transaction broadcast OK. You can safely \n" JMQtMessageBox(self, "Transaction broadcast OK. You can safely \n"
"shut down if you don't want to wait.", "shut down if you don't want to wait.",
title="Success") title="Success")

Loading…
Cancel
Save