mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-18 16:42:54 +01:00
Merge pull request #3579
f3005c8 [Qt] harmonize strings used when exporting in addressbookpage (Philip Kaufmann)
This commit is contained in:
@@ -270,7 +270,8 @@ void AddressBookPage::on_exportButton_clicked()
|
|||||||
tr("Export Address List"), QString(),
|
tr("Export Address List"), QString(),
|
||||||
tr("Comma separated file (*.csv)"), NULL);
|
tr("Comma separated file (*.csv)"), NULL);
|
||||||
|
|
||||||
if (filename.isNull()) return;
|
if (filename.isNull())
|
||||||
|
return;
|
||||||
|
|
||||||
CSVModelWriter writer(filename);
|
CSVModelWriter writer(filename);
|
||||||
|
|
||||||
@@ -279,10 +280,9 @@ void AddressBookPage::on_exportButton_clicked()
|
|||||||
writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);
|
writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);
|
||||||
writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);
|
writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);
|
||||||
|
|
||||||
if(!writer.write())
|
if(!writer.write()) {
|
||||||
{
|
QMessageBox::critical(this, tr("Exporting Failed"),
|
||||||
QMessageBox::critical(this, tr("Error exporting"), tr("Could not write to file %1.").arg(filename),
|
tr("There was an error trying to save the address list to %1.").arg(filename));
|
||||||
QMessageBox::Abort, QMessageBox::Abort);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user