X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=5b88f387c7d285b169f2c71788cee061cccb0055;hp=6ef75ef27fabd5dd5890cf00a5e007907d9c6294;hb=42c405ad2340c11c769643ab8aee5e6ab118d2a1;hpb=33c75fd9aaafe12a518900d72685b5360f567638 diff --git a/src/wallet.cpp b/src/wallet.cpp index 6ef75ef..5b88f38 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);