Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tom
crown-core
Commits
2bde0d54
Commit
2bde0d54
authored
11 years ago
by
Philip Kaufmann
Browse files
Options
Download
Email Patches
Plain Diff
[Qt] harmonize strings used when exporting in addressbookpage
parent
6d047e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/qt/addressbookpage.cpp
+6
-6
src/qt/addressbookpage.cpp
with
6 additions
and
6 deletions
+6
-6
src/qt/addressbookpage.cpp
View file @
2bde0d54
...
...
@@ -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
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help