commit 3a2fe806759d1a476a94a8167f4226e3d017ba28
parent dbd1c8cf71877dbca03501c07848655fdcf1a5bf
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 12 Dec 2019 21:39:46 +0100
qt: also use BlockWaitingDialog in PreviewTxDialog
as when 'advanced_preview' is set, ConfirmTxDialog is skipped
follow-up 1088cf444497b2548ba69aaaf755da6b83a477a8
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py
@@ -50,7 +50,8 @@ from electrum.logging import get_logger
from .util import (MessageBoxMixin, read_QIcon, Buttons, icon_path,
MONOSPACE_FONT, ColorScheme, ButtonsLineEdit, text_dialog,
- char_width_in_lineedit, TRANSACTION_FILE_EXTENSION_FILTER)
+ char_width_in_lineedit, TRANSACTION_FILE_EXTENSION_FILTER,
+ BlockingWaitingDialog)
from .fee_slider import FeeSlider
from .confirm_tx_dialog import TxEditor
@@ -606,7 +607,7 @@ class PreviewTxDialog(BaseTxDialog, TxEditor):
TxEditor.__init__(self, window=window, make_tx=make_tx, is_sweep=bool(external_keypairs))
BaseTxDialog.__init__(self, parent=window, desc='', prompt_if_unsaved=False,
finalized=False, external_keypairs=external_keypairs)
- self.update_tx()
+ BlockingWaitingDialog(window, _("Preparing transaction..."), self.update_tx)
self.update()
def create_fee_controls(self):