mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Remove code for no longer existing edit button in address book dialog
This commit is contained in:
parent
e1f3d64c4a
commit
8bca4099c7
@ -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()
|
void AddressBookDialog::on_newAddressButton_clicked()
|
||||||
{
|
{
|
||||||
EditAddressDialog dlg(
|
EditAddressDialog dlg(
|
||||||
|
@ -46,7 +46,6 @@ private slots:
|
|||||||
void on_deleteButton_clicked();
|
void on_deleteButton_clicked();
|
||||||
void on_tabWidget_currentChanged(int index);
|
void on_tabWidget_currentChanged(int index);
|
||||||
void on_newAddressButton_clicked();
|
void on_newAddressButton_clicked();
|
||||||
void on_editButton_clicked();
|
|
||||||
void on_copyToClipboard_clicked();
|
void on_copyToClipboard_clicked();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user