diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-02 15:57:23 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-02 15:57:23 +0200 |
commit | e457b021421c9065c8677e7fb7d7cae0391bf1f8 (patch) | |
tree | a656f00574cd40683656b976cc67607e5318bbb2 /gui/src/addressbookdialog.cpp | |
parent | ef1b844e7b444b07e708dcd9a1e0dc93510dade5 (diff) |
namespacing, user friendly base58 entry, addressbook work
Diffstat (limited to 'gui/src/addressbookdialog.cpp')
-rw-r--r-- | gui/src/addressbookdialog.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gui/src/addressbookdialog.cpp b/gui/src/addressbookdialog.cpp index ba6fdb51a0..853da5852e 100644 --- a/gui/src/addressbookdialog.cpp +++ b/gui/src/addressbookdialog.cpp @@ -87,14 +87,20 @@ void AddressBookDialog::on_copyToClipboard_clicked() void AddressBookDialog::on_editButton_clicked() { - /* Double click triggers edit button */ - EditAddressDialog dlg; + /* Double click also triggers edit button */ + EditAddressDialog dlg( + ui->tabWidget->currentIndex() == SendingTab ? + EditAddressDialog::EditSendingAddress : + EditAddressDialog::EditReceivingAddress); dlg.exec(); } void AddressBookDialog::on_newAddressButton_clicked() { - EditAddressDialog dlg; + EditAddressDialog dlg( + ui->tabWidget->currentIndex() == SendingTab ? + EditAddressDialog::NewSendingAddress : + EditAddressDialog::NewReceivingAddress); dlg.exec(); } @@ -103,10 +109,10 @@ void AddressBookDialog::on_tabWidget_currentChanged(int index) switch(index) { case SendingTab: - ui->deleteButton->show(); + ui->deleteButton->setEnabled(true); break; case ReceivingTab: - ui->deleteButton->hide(); + ui->deleteButton->setEnabled(false); break; } } |