Skip to content

Commit f3005c8

Browse files
author
Philip Kaufmann
committed
[Qt] harmonize strings used when exporting in addressbookpage
1 parent 6403c6c commit f3005c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/qt/addressbookpage.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void AddressBookPage::setModel(AddressTableModel *model)
138138
#endif
139139

140140
connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
141-
this, SLOT(selectionChanged()));
141+
this, SLOT(selectionChanged()));
142142

143143
// Select row for newly created address
144144
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(selectNewAddress(QModelIndex,int,int)));
@@ -270,7 +270,8 @@ void AddressBookPage::on_exportButton_clicked()
270270
tr("Export Address List"), QString(),
271271
tr("Comma separated file (*.csv)"), NULL);
272272

273-
if (filename.isNull()) return;
273+
if (filename.isNull())
274+
return;
274275

275276
CSVModelWriter writer(filename);
276277

@@ -279,10 +280,9 @@ void AddressBookPage::on_exportButton_clicked()
279280
writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);
280281
writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);
281282

282-
if(!writer.write())
283-
{
284-
QMessageBox::critical(this, tr("Error exporting"), tr("Could not write to file %1.").arg(filename),
285-
QMessageBox::Abort, QMessageBox::Abort);
283+
if(!writer.write()) {
284+
QMessageBox::critical(this, tr("Exporting Failed"),
285+
tr("There was an error trying to save the address list to %1.").arg(filename));
286286
}
287287
}
288288

0 commit comments

Comments
 (0)