Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
7a14f05a
Commit
7a14f05a
authored
Mar 12, 2020
by
Laurent Montel
Browse files
Fix compile against kio 5.69.0
parent
9f075c60
Changes
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/utils/messageviewerutil.cpp
View file @
7a14f05a
...
...
@@ -44,6 +44,7 @@
#include
"MessageCore/MessageCoreSettings"
#include
"MessageCore/NodeHelper"
#include
"MessageCore/StringUtil"
#include
<kio_version.h>
#include
"PimCommon/RenameFileDialog"
...
...
@@ -154,7 +155,11 @@ bool Util::checkOverwrite(const QUrl &url, QWidget *w)
if
(
url
.
isLocalFile
())
{
fileExists
=
QFile
::
exists
(
url
.
toLocalFile
());
}
else
{
auto
job
=
KIO
::
stat
(
url
,
KIO
::
StatJob
::
DestinationSide
,
0
);
#if KIO_VERSION < QT_VERSION_CHECK(5, 69, 0)
auto
job
=
KIO
::
stat
(
url
,
KIO
::
StatJob
::
DestinationSide
,
0
,
KIO
::
JobFlag
::
DefaultFlags
);
#else
auto
job
=
KIO
::
statDetails
(
url
,
KIO
::
StatJob
::
DestinationSide
,
KIO
::
StatDetail
::
Basic
);
#endif
KJobWidgets
::
setWindow
(
job
,
w
);
fileExists
=
job
->
exec
();
}
...
...
@@ -316,7 +321,11 @@ bool Util::saveContents(QWidget *parent, const KMime::Content::List &contents, Q
if
(
curUrl
.
isLocalFile
())
{
fileExists
=
QFile
::
exists
(
curUrl
.
toLocalFile
());
}
else
{
#if KIO_VERSION < QT_VERSION_CHECK(5, 69, 0)
auto
job
=
KIO
::
stat
(
curUrl
,
KIO
::
StatJob
::
DestinationSide
,
0
);
#else
auto
job
=
KIO
::
statDetails
(
url
,
KIO
::
StatJob
::
DestinationSide
,
KIO
::
StatDetail
::
Basic
);
#endif
KJobWidgets
::
setWindow
(
job
,
parent
);
fileExists
=
job
->
exec
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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