aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-29 14:36:35 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-29 14:36:35 +0200
commitee014e5b10f5f65820ff056311051ff49813b294 (patch)
treed9c0dd04b021c2c828bf55ba6ff33d93d07b5276 /src/qt/clientmodel.cpp
parentb5b1d1a66b9f418c9fb293cb1cc3eac09a711c4e (diff)
Full support for other units, add configuration option for default unit (used when displaying amounts)
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index c147aa5a6e..5cf02eac7d 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -9,8 +9,8 @@
#include <QTimer>
#include <QDateTime>
-ClientModel::ClientModel(CWallet *wallet, QObject *parent) :
- QObject(parent), wallet(wallet), optionsModel(0),
+ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) :
+ QObject(parent), optionsModel(optionsModel),
cachedNumConnections(0), cachedNumBlocks(0)
{
// Until signal notifications is built into the bitcoin core,
@@ -18,8 +18,6 @@ ClientModel::ClientModel(CWallet *wallet, QObject *parent) :
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
timer->start(MODEL_UPDATE_DELAY);
-
- optionsModel = new OptionsModel(wallet, this);
}
int ClientModel::getNumConnections() const