Skip the do-not-handle URLs instead of returning

CURA-5718

The request-url dict is not ordered so you cannot garuantee the ordering
when you use .items(). This can cause a problem that if a do-not-handle
item occurs first then nothing will be handled at all.
This commit is contained in:
Lipu Fei 2018-09-12 16:56:04 +02:00
parent 3da6e3c453
commit d1301d16a9

View file

@ -626,7 +626,7 @@ class Toolbox(QObject, Extension):
# HACK: Do nothing because we'll handle these from the "packages" call
if type in do_not_handle:
return
continue
if reply.url() == url:
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200: