fix #3016
This commit is contained in:
@@ -147,11 +147,14 @@ class TxDialog(QDialog, MessageBoxMixin):
|
|||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
if (self.prompt_if_unsaved and not self.saved
|
if (self.prompt_if_unsaved and not self.saved
|
||||||
and not self.question(_('This transaction is not saved. Close anyway?'), title=_("Warning"))):
|
and not self.question(_('This transaction is not saved. Close anyway?'), title=_("Warning"))):
|
||||||
event.ignore()
|
event.ignore()
|
||||||
else:
|
else:
|
||||||
event.accept()
|
event.accept()
|
||||||
dialogs.remove(self)
|
try:
|
||||||
|
dialogs.remove(self)
|
||||||
|
except ValueError:
|
||||||
|
pass # was not in list already
|
||||||
|
|
||||||
def show_qr(self):
|
def show_qr(self):
|
||||||
text = bfh(str(self.tx))
|
text = bfh(str(self.tx))
|
||||||
|
|||||||
Reference in New Issue
Block a user