diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-03-24 18:48:18 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-04-04 09:35:01 +0200 |
| commit | 98e61758744ed34e8b7f59b37edb6d09b33d5517 (patch) | |
| tree | 0eed63fc85d0dbcc851a1fbce8cdcb16b3b5b72c /src/wallet.cpp | |
| parent | Code deduplication: make function in GUIUtil to get connection type to call o... (diff) | |
| download | discoin-98e61758744ed34e8b7f59b37edb6d09b33d5517.tar.xz discoin-98e61758744ed34e8b7f59b37edb6d09b33d5517.zip | |
Update UI through async calls MainFrameRepaint and AddressBookRepaint instead of a timer.
- Overall, this is better design
- This fixes problems with the address book UI not updating when the address book is changed through RPC
- Move Statusbar change detection responsibility to ClientModel
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 27ed7228d..3bdb4bb56 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1279,6 +1279,7 @@ int CWallet::LoadWallet(bool& fFirstRunRet) bool CWallet::SetAddressBookName(const CBitcoinAddress& address, const string& strName) { mapAddressBook[address] = strName; + AddressBookRepaint(); if (!fFileBacked) return false; return CWalletDB(strWalletFile).WriteName(address.ToString(), strName); @@ -1287,6 +1288,7 @@ bool CWallet::SetAddressBookName(const CBitcoinAddress& address, const string& s bool CWallet::DelAddressBookName(const CBitcoinAddress& address) { mapAddressBook.erase(address); + AddressBookRepaint(); if (!fFileBacked) return false; return CWalletDB(strWalletFile).EraseName(address.ToString()); |