Skip to content
Commit d8fcc1e8 authored by Peter Wu's avatar Peter Wu
Browse files

Fix "Invalid URL: QUrl("some.txt")" warnings in Save dialog

When the Save File dialog is in use with filters, any relative path
would trigger warnings due to KIO::stat receiving an invalid URL in
KFileWidgetPrivate::updateLocationEditExtension. Fix the warning by
ensuring that relative paths are valid file URLs.

Add a bunch of tests to check the expected properties while at it. These
tests pass regardless of the fix but after the fix, warnings are gone.

BUG: 373119

Differential Revision: https://phabricator.kde.org/D19027
parent 3f3c6d30
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment