aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionview.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-11-08 19:54:16 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2011-11-08 19:54:16 +0100
commit9bc9593df56c2995fec1312d57225e4c887ee5ca (patch)
treecab9da7d76601734e77c2682d930f8f4068b394e /src/qt/transactionview.cpp
parente1739cbf386dd7a6eb4f748f11eece300f813276 (diff)
Fix segmentation fault when editing address not in address book (issue #615)
Diffstat (limited to 'src/qt/transactionview.cpp')
-rw-r--r--src/qt/transactionview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 92dda5784c..d39227c81f 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -322,6 +322,8 @@ void TransactionView::editLabel()
// If this transaction has no associated address, exit
return;
}
+ // Is address in address book? Address book can miss address when a transaction is
+ // sent from outside the UI.
int idx = addressBook->lookupAddress(address);
if(idx != -1)
{
@@ -343,6 +345,8 @@ void TransactionView::editLabel()
// Add sending address
EditAddressDialog dlg(EditAddressDialog::NewSendingAddress,
this);
+ dlg.setModel(addressBook);
+ dlg.setAddress(address);
dlg.exec();
}
}