aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2011-06-18 18:42:13 +0200
committerWladimir J. van der Laan <[email protected]>2011-07-07 15:18:35 +0200
commit42c405ad2340c11c769643ab8aee5e6ab118d2a1 (patch)
tree6fa28271ee08848e20815586c7551f7fe9223ba6 /src/wallet.cpp
parentCKeyStore::AddKey must return a boolean (diff)
downloaddiscoin-42c405ad2340c11c769643ab8aee5e6ab118d2a1.tar.xz
discoin-42c405ad2340c11c769643ab8aee5e6ab118d2a1.zip
temp patch for qtui
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 6ef75ef27..5b88f387c 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -91,7 +91,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
if (fInsertedNew || fUpdated)
if (!wtx.WriteToDisk())
return false;
-
+#ifndef QT_GUI
// If default receiving address gets used, replace it with a new one
CScript scriptDefaultKey;
scriptDefaultKey.SetBitcoinAddress(vchDefaultKey);
@@ -100,7 +100,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
if (txout.scriptPubKey == scriptDefaultKey)
SetDefaultKey(GetKeyFromKeyPool());
}
-
+#endif
// Notify UI
vWalletUpdated.push_back(hash);