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
4b47d6d7
Commit
4b47d6d7
authored
Apr 09, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Find more code where I need to use QFileInfo::exists()
parent
4fde84c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
core/utils.cpp
core/utils.cpp
+1
-2
No files found.
core/utils.cpp
View file @
4b47d6d7
...
...
@@ -264,8 +264,7 @@ QString Utils::storeResources(KZip *archive, const QString &identifier, const QS
const
QString
agentConfigFileName
=
QLatin1String
(
"agent_config_"
)
+
identifier
;
const
QString
agentConfigFileNamePath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
ConfigLocation
)
+
QLatin1String
(
"/akonadi/"
)
+
agentConfigFileName
;
QFile
agentConfigFileNameFile
(
agentConfigFileNamePath
);
if
(
agentConfigFileNameFile
.
exists
())
{
if
(
QFileInfo
::
exists
(
agentConfigFileNamePath
))
{
fileAdded
=
archive
->
addLocalFile
(
agentConfigFileNamePath
,
path
+
agentConfigFileName
);
if
(
!
fileAdded
)
{
return
i18n
(
"Resource file
\"
%1
\"
cannot be added to backup file."
,
agentFileName
);
...
...
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