Skip to content

Commit

Permalink
[Qt] harmonize strings used when exporting in addressbookpage
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Kaufmann committed Jan 27, 2014
1 parent 6403c6c commit f3005c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void AddressBookPage::setModel(AddressTableModel *model)
#endif

connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(selectionChanged()));
this, SLOT(selectionChanged()));

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

if (filename.isNull()) return;
if (filename.isNull())
return;

CSVModelWriter writer(filename);

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

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

Expand Down

0 comments on commit f3005c8

Please sign in to comment.