mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt transaction_dialog: normal close if user presses Esc
(Electron-Cash/Electron-Cash#890)
This commit is contained in:
parent
dc1a31d802
commit
508793b010
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ class TxDialog(QDialog, MessageBoxMixin):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass # was not in list already
|
pass # was not in list already
|
||||||
|
|
||||||
|
def reject(self):
|
||||||
|
# Override escape-key to close normally (and invoke closeEvent)
|
||||||
|
self.close()
|
||||||
|
|
||||||
def show_qr(self):
|
def show_qr(self):
|
||||||
text = bfh(str(self.tx))
|
text = bfh(str(self.tx))
|
||||||
text = base_encode(text, base=43)
|
text = base_encode(text, base=43)
|
||||||
|
|
Loading…
Add table
Reference in a new issue