Browse Source

fix "send to" address book

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
b9e41844c0
  1. 1
      gui/src/addressbookdialog.cpp
  2. 2
      gui/src/sendcoinsdialog.cpp

1
gui/src/addressbookdialog.cpp

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

2
gui/src/sendcoinsdialog.cpp

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

Loading…
Cancel
Save