diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-29 14:36:35 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-29 14:36:35 +0200 |
| commit | ee014e5b10f5f65820ff056311051ff49813b294 (patch) | |
| tree | d9c0dd04b021c2c828bf55ba6ff33d93d07b5276 /src/qt/walletmodel.cpp | |
| parent | Merge branch 'master' of https://github.com/bitcoin/bitcoin (diff) | |
| download | discoin-ee014e5b10f5f65820ff056311051ff49813b294.tar.xz discoin-ee014e5b10f5f65820ff056311051ff49813b294.zip | |
Full support for other units, add configuration option for default unit (used when displaying amounts)
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 732472c1a..4d8d6fe45 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -9,8 +9,8 @@ #include <QTimer> #include <QSet> -WalletModel::WalletModel(CWallet *wallet, QObject *parent) : - QObject(parent), wallet(wallet), optionsModel(0), addressTableModel(0), +WalletModel::WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent) : + QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0), transactionTableModel(0), cachedBalance(0), cachedUnconfirmedBalance(0), cachedNumTransactions(0) { @@ -20,7 +20,6 @@ WalletModel::WalletModel(CWallet *wallet, QObject *parent) : connect(timer, SIGNAL(timeout()), this, SLOT(update())); timer->start(MODEL_UPDATE_DELAY); - optionsModel = new OptionsModel(wallet, this); addressTableModel = new AddressTableModel(wallet, this); transactionTableModel = new TransactionTableModel(wallet, this); } |