]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Send: don't allow tx construction before sync is complete
authortobtoht <thotbot@protonmail.com>
Fri, 25 Feb 2022 15:24:27 +0000 (16:24 +0100)
committertobtoht <thotbot@protonmail.com>
Fri, 25 Feb 2022 15:24:27 +0000 (16:24 +0100)
src/SendWidget.cpp

index d0f4e1267bec6afc0238b4b09988b1043adf2662..ee54473dfbf3685c1ad773b4216c19f6d4307bfa 100644 (file)
@@ -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();