https://bugs.kde.org/show_bug.cgi?id=373119

Peter Wu <pe...@lekensteyn.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kio
                   |                            |/d8fcc1e8c62c37f122350ce045
                   |                            |a4f22e489be855
         Resolution|---                         |FIXED

--- Comment #11 from Peter Wu <pe...@lekensteyn.nl> ---
Git commit d8fcc1e8c62c37f122350ce045a4f22e489be855 by Peter Wu.
Committed on 03/03/2019 at 19:56.
Pushed by peterwu into branch 'master'.

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.

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

M  +119  -0    autotests/kfilewidgettest.cpp
M  +9    -2    src/filewidgets/kfilewidget.cpp

https://commits.kde.org/kio/d8fcc1e8c62c37f122350ce045a4f22e489be855

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to