diff options
| author | Cory Fields <[email protected]> | 2013-05-26 14:17:18 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2013-06-04 03:54:14 -0400 |
| commit | ee4b170c929b0f0d0b5a9fcaa0c35c79e9ac157c (patch) | |
| tree | e6832adf2210afe40b78979a2ac0cb27e3b28291 /src/wallet.cpp | |
| parent | build: use runtime setting for displaying the help message rather than QT_GUI... (diff) | |
| download | discoin-ee4b170c929b0f0d0b5a9fcaa0c35c79e9ac157c.tar.xz discoin-ee4b170c929b0f0d0b5a9fcaa0c35c79e9ac157c.zip | |
build: use runtime setting for wallet rather than QT_GUI define
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 27aab08ec..17a35d940 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -459,7 +459,8 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) if (fInsertedNew || fUpdated) if (!wtx.WriteToDisk()) return false; -#ifndef QT_GUI + + if (!fHaveGUI) { // If default receiving address gets used, replace it with a new one if (vchDefaultKey.IsValid()) { CScript scriptDefaultKey; @@ -477,7 +478,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) } } } -#endif + } // since AddToWallet is called directly for self-originating transactions, check for consumption of own coins WalletUpdateSpent(wtx); |