Browse Source

Send: disable openalias button on resolve

1.0.0
tobtoht 2 months ago
parent
commit
0bc873c5cc
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 3
      src/SendWidget.cpp

3
src/SendWidget.cpp

@ -193,6 +193,7 @@ void SendWidget::sendClicked() {
}
void SendWidget::aliasClicked() {
ui->btn_openAlias->setEnabled(false);
auto alias = ui->lineAddress->text();
WalletManager::instance()->resolveOpenAliasAsync(alias);
}
@ -255,6 +256,8 @@ double SendWidget::amountDouble() {
}
void SendWidget::onOpenAliasResolved(const QString &openAlias, const QString &address, bool dnssecValid) {
ui->btn_openAlias->setEnabled(true);
if (address.isEmpty()) {
this->onOpenAliasResolveError("Could not resolve OpenAlias.");
return;

Loading…
Cancel
Save