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
KDE PIM Add-ons
Commits
c532babe
Commit
c532babe
authored
Dec 19, 2021
by
David Faure
Browse files
picoftheday: remove unnecessary use of KIO::Scheduler::setJobPriority
parent
d4b67e66
Pipeline
#112208
passed with stage
in 9 minutes and 23 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
korganizer/plugins/picoftheday/element.cpp
View file @
c532babe
...
...
@@ -90,10 +90,7 @@ KIO::SimpleJob *POTDElement::createJsonQueryJob(const QString &property, const Q
}
url
.
setQuery
(
urlQuery
);
auto
job
=
KIO
::
storedGet
(
url
,
KIO
::
NoReload
,
KIO
::
HideProgressInfo
);
KIO
::
Scheduler
::
setJobPriority
(
job
,
1
);
return
job
;
return
KIO
::
storedGet
(
url
,
KIO
::
NoReload
,
KIO
::
HideProgressInfo
);
}
KIO
::
SimpleJob
*
POTDElement
::
createImagesJsonQueryJob
(
PageProtectionState
state
)
...
...
@@ -273,7 +270,6 @@ void POTDElement::getThumbImage(const QUrl &thumbUrl)
qCDebug
(
KORGANIZERPICOFTHEDAYPLUGIN_LOG
)
<<
mDate
<<
": fetching POTD thumbnail:"
<<
thumbUrl
;
mGetThumbImageJob
=
KIO
::
storedGet
(
thumbUrl
,
KIO
::
NoReload
,
KIO
::
HideProgressInfo
);
KIO
::
Scheduler
::
setJobPriority
(
mGetThumbImageJob
,
1
);
connect
(
mGetThumbImageJob
,
&
KIO
::
SimpleJob
::
result
,
this
,
&
POTDElement
::
handleGetThumbImageResponse
);
}
...
...
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