Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Data Exporter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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
)
+
Q
Latin1Char
(
'/'
)
+
QStringLiteral
(
"
kmail2/%1"
).
arg
(
fileInfo
.
fileName
());
QString
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
Q
StringLiteral
(
"/
kmail2/%1"
).
arg
(
fileInfo
.
fileName
());
int
i
=
1
;
while
(
QFileInfo
::
exists
(
vcardFileName
))
{
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
Q
Latin1Char
(
'/'
)
+
QStringLiteral
(
"
kmail2/%1_%2"
).
arg
(
i
).
arg
(
vcardFilePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
Q
StringLiteral
(
"/
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