Browse Source
fix Qt tx dialog randomly disappearing (due to gc)
ln-negative-red
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/gui/qt/transaction_dialog.py
|
|
@ -84,7 +84,6 @@ def show_transaction(tx: Transaction, *, parent: 'ElectrumWindow', invoice=None, |
|
|
|
_logger.exception('unable to deserialize the transaction') |
|
|
|
parent.show_critical(_("Electrum was unable to deserialize the transaction:") + "\n" + str(e)) |
|
|
|
else: |
|
|
|
dialogs.append(d) |
|
|
|
d.show() |
|
|
|
|
|
|
|
|
|
|
@ -195,6 +194,8 @@ class BaseTxDialog(QDialog, MessageBoxMixin): |
|
|
|
vbox.addLayout(hbox) |
|
|
|
self.set_buttons_visibility() |
|
|
|
|
|
|
|
dialogs.append(self) |
|
|
|
|
|
|
|
def set_buttons_visibility(self): |
|
|
|
for b in [self.export_actions_button, self.save_button, self.sign_button, self.broadcast_button, self.partial_tx_actions_button]: |
|
|
|
b.setVisible(self.finalized) |
|
|
|