Add a timer to check for changes in immature or unconfirmed balances,

when these are non-zero. Fixed a minor mem leak.
This commit is contained in:
Scott Ellis
2012-07-06 01:43:28 +10:00
parent fe70b09c42
commit 6c83a8419b
3 changed files with 56 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) :
{
numBlocksAtStartup = -1;
pollTimer = new QTimer();
pollTimer = new QTimer(this);
pollTimer->setInterval(MODEL_UPDATE_DELAY);
pollTimer->start();
connect(pollTimer, SIGNAL(timeout()), this, SLOT(updateTimer()));