qt transaction_dialog: normal close if user presses Esc

(Electron-Cash/Electron-Cash#890)
This commit is contained in:
Mark B Lundeberg 2018-10-08 15:04:45 -07:00 committed by SomberNight
parent dc1a31d802
commit 508793b010
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -178,6 +178,10 @@ class TxDialog(QDialog, MessageBoxMixin):
except ValueError:
pass # was not in list already
def reject(self):
# Override escape-key to close normally (and invoke closeEvent)
self.close()
def show_qr(self):
text = bfh(str(self.tx))
text = base_encode(text, base=43)