From f8bc33572004f31650e5638dd7e2b32eceed170f Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 25 Feb 2022 16:24:27 +0100 Subject: [PATCH] Send: don't allow tx construction before sync is complete --- src/SendWidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.52.0