Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
defunctec
crown-core
Commits
5c99317a
Commit
5c99317a
authored
12 years ago
by
Wladimir J. van der Laan
Browse files
Options
Download
Plain Diff
Merge pull request #1189 from Diapolo/fix#952
fix for #952 (send coins tab glitch)
parents
1c2db8c3
32a032df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/qt/walletmodel.cpp
+10
-3
src/qt/walletmodel.cpp
with
10 additions
and
3 deletions
+10
-3
src/qt/walletmodel.cpp
View file @
5c99317a
...
...
@@ -150,14 +150,21 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipie
hex
=
QString
::
fromStdString
(
wtx
.
GetHash
().
GetHex
());
}
// Add addresses that we've sent to to the address book
// Add addresses
/ update labels
that we've sent to to the address book
foreach
(
const
SendCoinsRecipient
&
rcp
,
recipients
)
{
std
::
string
strAddress
=
rcp
.
address
.
toStdString
();
std
::
string
strLabel
=
rcp
.
label
.
toStdString
();
{
LOCK
(
wallet
->
cs_wallet
);
if
(
!
wallet
->
mapAddressBook
.
count
(
strAddress
))
wallet
->
SetAddressBookName
(
strAddress
,
rcp
.
label
.
toStdString
());
std
::
map
<
CBitcoinAddress
,
std
::
string
>::
iterator
mi
=
wallet
->
mapAddressBook
.
find
(
strAddress
);
// Check if we have a new address or an updated label
if
(
mi
==
wallet
->
mapAddressBook
.
end
()
||
mi
->
second
!=
strLabel
)
{
wallet
->
SetAddressBookName
(
strAddress
,
strLabel
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help