Diffusion KIO ca2364d9c203

Fix crash, presumably since Qt 5.10?

Authored by apol on Dec 18 2017, 3:30 PM.

Description

Fix crash, presumably since Qt 5.10?

Summary:
We are opening the stream as read only and skipRawData would complain that
it's a write-only device, and skipping needs reading:
QIODevice::skip (QBuffer): WriteOnly device
It was a weird optimization anyway, so just pass the information like the
rest of the data and it works just fine.

BUG: 386364

Test Plan:
The check on the bug report passes now, and akregator fetches
all feeds again.

Reviewers: Frameworks, dfaure

Reviewed By: dfaure

Subscribers: anthonyfieroni, ngraham

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D9399

Details

Committed
apolDec 19 2017, 10:44 PM
Reviewer
dfaure
Differential Revision
D9399: Fix crash, presumably since Qt 5.10?
Parents
R241:f3bb9edbf5b3: KUriFilter: don't return an error on non-existing files.
Branches
Unknown
Tags
Unknown