Send: don't allow tx construction before sync is complete

This commit is contained in:
tobtoht 2022-02-25 16:24:27 +01:00
parent f5d75dab7c
commit f8bc335720
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View 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();