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
Network
libktorrent
Commits
51ebef02
Commit
51ebef02
authored
Jul 24, 2022
by
Nicolas Fella
Browse files
Port away from deprecated ERR_SLAVE_DEFINED
parent
4f6c01cb
Pipeline
#208523
canceled with stage
in 1 minute and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/tracker/kioannouncejob.cpp
View file @
51ebef02
...
...
@@ -8,6 +8,8 @@
#include
<kio/job.h>
#include
<util/log.h>
#include
<kio_version.h>
namespace
bt
{
KIOAnnounceJob
::
KIOAnnounceJob
(
const
QUrl
&
url
,
const
KIO
::
MetaData
&
md
)
...
...
@@ -50,7 +52,11 @@ void KIOAnnounceJob::finished(KJob *j)
error_page
=
get_job
->
isErrorPage
();
// must be called from slot connected to result()
if
(
error_page
&&
!
j
->
error
())
{
QString
err_code
=
get_job
->
metaData
().
value
(
QStringLiteral
(
"responsecode"
));
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
setError
(
KIO
::
ERR_WORKER_DEFINED
);
#else
setError
(
KIO
::
ERR_SLAVE_DEFINED
);
#endif
setErrorText
(
QString
(
"HTTP %1"
).
arg
(
err_code
));
}
else
{
setError
(
j
->
error
());
...
...
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