From: tobtoht Date: Wed, 13 Dec 2023 14:24:02 +0000 (+0100) Subject: macos: hww: fix UI unresponsiveness X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=94e7e43dfec5380cec889fbdfadfd9f5792aef98;p=gamesguru%2Ffeather.git macos: hww: fix UI unresponsiveness --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 7db1f1d9..39d47e50 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -765,6 +765,14 @@ void MainWindow::onTransactionCreated(PendingTransaction *tx, const QVectorstatus() != PendingTransaction::Status_Ok) { + if (m_showDeviceError) { + // The hardware devices has disconnected during tx construction. + // Due to a macOS-specific Qt bug, we have to prevent it from stacking two QMessageBoxes, otherwise + // the UI becomes unresponsive. The reconnect dialog should take priority. + m_wallet->disposeTransaction(tx); + return; + } + QString errMsg = tx->errorString(); Utils::Message message{this, Utils::ERROR, "Failed to construct transaction", errMsg};