diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-06-30 18:05:29 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-06-30 18:05:29 +0200 |
| commit | ef079e183bf1be9f5a61a05018ee4480db86bc45 (patch) | |
| tree | cc14168e8fff26b5024086ca32c471277a0a6c71 /src/qt/bitcoin.cpp | |
| parent | show an error if amount is not valid (either the amount or decimals is empty) (diff) | |
| download | discoin-ef079e183bf1be9f5a61a05018ee4480db86bc45.tar.xz discoin-ef079e183bf1be9f5a61a05018ee4480db86bc45.zip | |
Split off WalletModel from ClientModel, to be able to support multi-wallets in future
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index c31be1b60..397af5fd3 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -3,6 +3,7 @@ */ #include "bitcoingui.h" #include "clientmodel.h" +#include "walletmodel.h" #include "headers.h" #include "init.h" @@ -113,9 +114,11 @@ int main(int argc, char *argv[]) if(AppInit2(argc, argv)) { BitcoinGUI window; - ClientModel model(pwalletMain); + ClientModel clientModel(pwalletMain); + WalletModel walletModel(pwalletMain); guiref = &window; - window.setModel(&model); + window.setClientModel(&clientModel); + window.setWalletModel(&walletModel); window.show(); |