aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-07-05 17:42:44 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-07-05 17:42:44 +0200
commite9f61c8787af99c49678ba4bc182b24b8fdba0c4 (patch)
treed6ba403f7589fac5fa685998891f74b9bed19295 /src/ui.cpp
parent9390431ce49893cbdf23846edb4bdf72b3d4e830 (diff)
downloadbitcoin-e9f61c8787af99c49678ba4bc182b24b8fdba0c4.tar.xz
Fix synchronization of default key
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 2cbcfd5bd8..9b84fb9e6b 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -240,7 +240,7 @@ void SetDefaultReceivingAddress(const string& strAddress)
return;
if (!mapPubKeys.count(hash160))
return;
- CWalletDB(pwalletMain->strWalletFile).WriteDefaultKey(mapPubKeys[hash160]);
+ pwalletMain->SetDefaultKey(mapPubKeys[hash160]);
pframeMain->m_textCtrlAddress->SetValue(strAddress);
}
}