aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2011-07-06 20:52:31 +0200
committerWladimir J. van der Laan <[email protected]>2011-07-06 20:52:31 +0200
commit8bca4099c712b816ec859b39571b7c555b33be49 (patch)
treedd77064e526e3df034deca9467d0aa3ac17597fb /src
parentAdd "BTC" to all amount widgets, to make clear what the unit is (diff)
downloaddiscoin-8bca4099c712b816ec859b39571b7c555b33be49.tar.xz
discoin-8bca4099c712b816ec859b39571b7c555b33be49.zip
Remove code for no longer existing edit button in address book dialog
Diffstat (limited to 'src')
-rw-r--r--src/qt/addressbookdialog.cpp21
-rw-r--r--src/qt/addressbookdialog.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/src/qt/addressbookdialog.cpp b/src/qt/addressbookdialog.cpp
index 5a744aec4..220679c9e 100644
--- a/src/qt/addressbookdialog.cpp
+++ b/src/qt/addressbookdialog.cpp
@@ -104,27 +104,6 @@ void AddressBookDialog::on_copyToClipboard_clicked()
}
}
-void AddressBookDialog::on_editButton_clicked()
-{
- QModelIndexList indexes = getCurrentTable()->selectionModel()->selectedRows();
- if(indexes.isEmpty())
- {
- return;
- }
- // Map selected index to source address book model
- QAbstractProxyModel *proxy_model = static_cast<QAbstractProxyModel*>(getCurrentTable()->model());
- QModelIndex selected = proxy_model->mapToSource(indexes.at(0));
-
- // Double click also triggers edit button
- EditAddressDialog dlg(
- ui->tabWidget->currentIndex() == SendingTab ?
- EditAddressDialog::EditSendingAddress :
- EditAddressDialog::EditReceivingAddress);
- dlg.setModel(model);
- dlg.loadRow(selected.row());
- dlg.exec();
-}
-
void AddressBookDialog::on_newAddressButton_clicked()
{
EditAddressDialog dlg(
diff --git a/src/qt/addressbookdialog.h b/src/qt/addressbookdialog.h
index b032e554d..fe243a62c 100644
--- a/src/qt/addressbookdialog.h
+++ b/src/qt/addressbookdialog.h
@@ -46,7 +46,6 @@ private slots:
void on_deleteButton_clicked();
void on_tabWidget_currentChanged(int index);
void on_newAddressButton_clicked();
- void on_editButton_clicked();
void on_copyToClipboard_clicked();
};