Balance on UI updated by the signal

This commit is contained in:
Ilya Kitaev
2016-06-17 16:35:07 +03:00
parent eaf59243b2
commit 8ac86a8042
3 changed files with 20 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
#include <QDir>
#include <QDebug>
#include <QUrl>
#include <QTimer>
namespace {
@@ -81,7 +82,10 @@ quint64 Wallet::unlockedBalance() const
bool Wallet::refresh()
{
return m_walletImpl->refresh();
bool result = m_walletImpl->refresh();
if (result)
emit updated();
return result;
}
PendingTransaction *Wallet::createTransaction(const QString &dst_addr, quint64 amount)