Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Data Exporter
Commits
a17cd2ec
Commit
a17cd2ec
authored
Dec 07, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "/" directly
parent
ba386994
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/mail/importmailjob.cpp
core/mail/importmailjob.cpp
+2
-2
No files found.
core/mail/importmailjob.cpp
View file @
a17cd2ec
...
...
@@ -915,10 +915,10 @@ void ImportMailJob::restoreIdentity()
const
KArchiveEntry
*
vcardEntry
=
mArchiveDirectory
->
entry
(
Utils
::
identitiesPath
()
+
QString
::
number
(
oldUid
)
+
QDir
::
separator
()
+
file
.
fileName
());
if
(
vcardEntry
&&
vcardEntry
->
isFile
())
{
const
KArchiveFile
*
vcardFile
=
static_cast
<
const
KArchiveFile
*>
(
vcardEntry
);
QString
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QLatin1Char
(
'/'
)
+
QStringLiteral
(
"kmail2/%1"
).
arg
(
fileInfo
.
fileName
());
QString
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"
/
kmail2/%1"
).
arg
(
fileInfo
.
fileName
());
int
i
=
1
;
while
(
QFileInfo
::
exists
(
vcardFileName
))
{
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QLatin1Char
(
'/'
)
+
QStringLiteral
(
"kmail2/%1_%2"
).
arg
(
i
).
arg
(
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"
/
kmail2/%1_%2"
).
arg
(
i
).
arg
(
fileInfo
.
fileName
());
++
i
;
}
...
...
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