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
7c50e9a8
Commit
7c50e9a8
authored
Jun 27, 2018
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 395911 - pimsettingsexporter "contacts" directory path incorrect
FIXED-IN: 18.04.3 BUG: 395911
parent
ab452901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
core/addressbook/exportaddressbookjob.cpp
core/addressbook/exportaddressbookjob.cpp
+1
-1
core/addressbook/importaddressbookjob.cpp
core/addressbook/importaddressbookjob.cpp
+1
-1
No files found.
core/addressbook/exportaddressbookjob.cpp
View file @
7c50e9a8
...
...
@@ -93,7 +93,7 @@ void ExportAddressbookJob::slotWriteNextArchiveResource()
if
(
identifier
.
contains
(
QLatin1String
(
"akonadi_vcarddir_resource_"
))
||
identifier
.
contains
(
QLatin1String
(
"akonadi_contacts_resource_"
)))
{
const
QString
archivePath
=
Utils
::
addressbookPath
()
+
identifier
+
QDir
::
separator
();
QString
url
=
Utils
::
resourcePath
(
agent
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"/
share/
contacts/"
));
QString
url
=
Utils
::
resourcePath
(
agent
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"/contacts/"
));
if
(
!
mAgentPaths
.
contains
(
url
))
{
mAgentPaths
<<
url
;
if
(
!
url
.
isEmpty
())
{
...
...
core/addressbook/importaddressbookjob.cpp
View file @
7c50e9a8
...
...
@@ -106,7 +106,7 @@ void ImportAddressbookJob::restoreResources()
KSharedConfig
::
Ptr
resourceConfig
=
KSharedConfig
::
openConfig
(
copyToDirName
+
QLatin1Char
(
'/'
)
+
resourceName
);
//TODO fix default path
const
QString
newUrl
=
Utils
::
adaptResourcePath
(
resourceConfig
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QLatin1String
(
"/
share/
contacts"
));
const
QString
newUrl
=
Utils
::
adaptResourcePath
(
resourceConfig
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QLatin1String
(
"/contacts"
));
QFileInfo
newUrlInfo
(
newUrl
);
const
QString
dataFile
=
value
.
akonadiResources
;
const
KArchiveEntry
*
dataResouceEntry
=
mArchiveDirectory
->
entry
(
dataFile
);
...
...
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