WalletManager: async setDaemonAddress

This commit is contained in:
xiphon
2019-05-27 22:13:53 +00:00
parent c286c7e5a8
commit 8bc9fbecaf
3 changed files with 8 additions and 6 deletions

View File

@@ -344,9 +344,11 @@ QString WalletManager::paymentIdFromAddress(const QString &address, NetworkType:
return QString::fromStdString(Monero::Wallet::paymentIdFromAddress(address.toStdString(), static_cast<Monero::NetworkType>(nettype)));
}
void WalletManager::setDaemonAddress(const QString &address)
void WalletManager::setDaemonAddressAsync(const QString &address)
{
m_pimpl->setDaemonAddress(address.toStdString());
QtConcurrent::run([this, address] {
m_pimpl->setDaemonAddress(address.toStdString());
});
}
bool WalletManager::connected() const