From: tobtoht Date: Fri, 25 Feb 2022 15:24:27 +0000 (+0100) Subject: Send: don't allow tx construction before sync is complete X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=f8bc33572004f31650e5638dd7e2b32eceed170f;p=gamesguru%2Ffeather.git Send: don't allow tx construction before sync is complete --- diff --git a/src/SendWidget.cpp b/src/SendWidget.cpp index d0f4e126..ee54473d 100644 --- a/src/SendWidget.cpp +++ b/src/SendWidget.cpp @@ -136,6 +136,12 @@ void SendWidget::sendClicked() { return; } + if (!m_ctx->wallet->isSynchronized()) { + QMessageBox::warning(this, "Error", "Wallet is not synchronized, unable to create transaction.\n\n" + "Wait for synchronization to complete."); + return; + } + QString currency = ui->comboCurrencySelection->currentText(); QString recipient = ui->lineAddress->text().simplified().remove(' '); QString description = ui->lineDescription->text();