aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-26 18:45:50 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-01-27 08:36:14 +0100
commitf3005c82b15a73358f53420aa798b5db9f9b1f7a (patch)
treeb9f150b039d751de01471170e51820947ff0c74e /src
parent6403c6c835a3302a6ee575576be93e4104a39685 (diff)
[Qt] harmonize strings used when exporting in addressbookpage
Diffstat (limited to 'src')
-rw-r--r--src/qt/addressbookpage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index abda6c7981..2dc56a5107 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -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)));
@@ -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);
@@ -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));
}
}