fix "send to" address book

This commit is contained in:
Wladimir J. van der Laan 2011-06-04 21:54:49 +02:00
parent 64bca50d54
commit b9e41844c0
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@ AddressBookDialog::~AddressBookDialog()
void AddressBookDialog::setModel(AddressTableModel *model)
{
this->model = model;
/* Refresh list from core */
model->updateList();

View file

@ -101,6 +101,8 @@ void SendCoinsDialog::on_pasteButton_clicked()
void SendCoinsDialog::on_addressBookButton_clicked()
{
AddressBookDialog dlg;
dlg.setModel(model->getAddressTableModel());
dlg.setTab(AddressBookDialog::SendingTab);
dlg.exec();
ui->payTo->setText(dlg.getReturnValue());
}