]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Send: disable openalias button on resolve
authortobtoht <thotbot@protonmail.com>
Fri, 22 Oct 2021 23:46:38 +0000 (01:46 +0200)
committertobtoht <thotbot@protonmail.com>
Fri, 22 Oct 2021 23:46:38 +0000 (01:46 +0200)
src/SendWidget.cpp

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