|
|
|
@ -81,9 +81,7 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
|
|
|
|
|
ui->exportButton->setIcon(platformStyle->SingleColorIcon(":/icons/export"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(mode)
|
|
|
|
|
{
|
|
|
|
|
case ForSelection:
|
|
|
|
|
if (mode == ForSelection) {
|
|
|
|
|
switch(tab)
|
|
|
|
|
{
|
|
|
|
|
case SendingTab: setWindowTitle(tr("Choose the address to send coins to")); break;
|
|
|
|
@ -94,14 +92,6 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
|
|
|
|
|
ui->tableView->setFocus();
|
|
|
|
|
ui->closeButton->setText(tr("C&hoose"));
|
|
|
|
|
ui->exportButton->hide();
|
|
|
|
|
break;
|
|
|
|
|
case ForEditing:
|
|
|
|
|
switch(tab)
|
|
|
|
|
{
|
|
|
|
|
case SendingTab: setWindowTitle(tr("Sending addresses")); break;
|
|
|
|
|
case ReceivingTab: setWindowTitle(tr("Receiving addresses")); break;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
switch(tab)
|
|
|
|
|
{
|
|
|
|
@ -164,6 +154,7 @@ void AddressBookPage::setModel(AddressTableModel *_model)
|
|
|
|
|
connect(_model, &AddressTableModel::rowsInserted, this, &AddressBookPage::selectNewAddress);
|
|
|
|
|
|
|
|
|
|
selectionChanged();
|
|
|
|
|
this->updateWindowsTitleWithWalletName();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AddressBookPage::on_copyAddress_clicked()
|
|
|
|
@ -328,3 +319,16 @@ void AddressBookPage::selectNewAddress(const QModelIndex &parent, int begin, int
|
|
|
|
|
newAddressToSelect.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AddressBookPage::updateWindowsTitleWithWalletName()
|
|
|
|
|
{
|
|
|
|
|
const QString walletName = this->model->GetWalletDisplayName();
|
|
|
|
|
|
|
|
|
|
if (mode == ForEditing) {
|
|
|
|
|
switch(tab)
|
|
|
|
|
{
|
|
|
|
|
case SendingTab: setWindowTitle(tr("Sending addresses - %1").arg(walletName)); break;
|
|
|
|
|
case ReceivingTab: setWindowTitle(tr("Receiving addresses - %1").arg(walletName)); break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|