Fixes failing test.
Details
Diff Detail
- Repository
- R120 Plasma Workspace
- Branch
- fix-kioslave-desktop
- Lint
No Linters Available - Unit
No Unit Test Coverage
@dfaure I saw that you modified QUrl::setPath lately. Is this the correct approach here?
kioslave/desktop/kio_desktop.cpp | ||
---|---|---|
161 | Can the path really *not* start with a '/' in this code ? So it seems to me that just removing the '/' would be enough in practice. |
kioslave/desktop/kio_desktop.cpp | ||
---|---|---|
161 |
hmm, does that work also with older Qt (e.g. Qt 5.5)? Given that the test passes on Qt 5.5, but not on Qt 5.6, I fear that there is a difference. |
I'm pretty sure it should work. What changed in QUrl is that setPath used to normalize the path and doesn't do that anymore.
(qtbase commit 2e1de7f3c4ca). So in 5.5 the double slash got simplified to a single slash, while in 5.6 it stays and breaks the test.
Not putting a double slash in the first place will work with both Qt versions.