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 IncidenceEditor
Commits
2358aa22
Commit
2358aa22
authored
Sep 24, 2022
by
Laurent Montel
Browse files
We depend against kf5.98
parent
73b73873
Pipeline
#236401
passed with stage
in 4 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/incidenceattachment.cpp
View file @
2358aa22
...
...
@@ -18,12 +18,8 @@
#include
<KActionCollection>
#include
<KIO/Job>
#include
<kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include
<KIO/JobUiDelegateFactory>
#else
#include
<KIO/JobUiDelegate>
#
endif
#
include
<KIO/JobUiDelegateFactory>
#include
<KIO/OpenUrlJob>
#include
<KIO/StoredTransferJob>
#include
<KJobWidgets>
...
...
@@ -275,11 +271,7 @@ void IncidenceAttachment::showAttachment(QListWidgetItem *item)
openURL
(
QUrl
(
att
.
uri
()));
}
else
{
auto
job
=
new
KIO
::
OpenUrlJob
(
attitem
->
tempFileForAttachment
(),
att
.
mimeType
());
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job
->
setUiDelegate
(
KIO
::
createDefaultJobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
mAttachmentView
));
#else
job
->
setUiDelegate
(
new
KIO
::
JobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
mAttachmentView
));
#endif
job
->
setDeleteTemporaryFile
(
true
);
job
->
start
();
}
...
...
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