Do not treat filename in selection as URL

Authored by fvogt on Feb 11 2017, 9:08 PM.



KFileWidget::setSelection(QString &) accepts either absolute URLs
or relative paths. If the filename contains a :, it gets treated
as a URL and gets rejected. This forces setSelection to parse
it as URL.

CCBUG: 376365

Diff Detail

R135 Integration for Qt applications in Plasma
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
fvogt retitled this revision from to Do not treat filename in selection as URL.Feb 11 2017, 9:08 PM
fvogt updated this object.
fvogt edited the test plan for this revision. (Show Details)
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 11 2017, 9:08 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript contains reproducer, with this change it works.

mart accepted this revision.Feb 13 2017, 11:31 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Feb 13 2017, 11:31 AM
This revision was automatically updated to reflect the committed changes.