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

Harald Sitter <sit...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/xdg-desktop-portal-kde/c
                   |                            |ommit/3f0268306ed3d29405a74
                   |                            |e2e562f4a391d3763c0
         Resolution|---                         |FIXED

--- Comment #11 from Harald Sitter <sit...@kde.org> ---
Git commit 3f0268306ed3d29405a74e2e562f4a391d3763c0 by Harald Sitter.
Committed on 18/07/2022 at 14:51.
Pushed by sitter into branch 'master'.

don't construct invalid paths

tear this logic apart a bit to make it easier to comprehend. previously
it was trying to be too smart for its own good.

the previous code would url.todisplaystring (this returns a url if the
input was an url - e.g. file:///foo) but then used that with
fromLocalFile (which prepends file:/) ultimately ending up with
file:file://foo.

instead let's manipulate the path proper-like. append to the path(),
then simply pass along the url, no localfile conversion necessary at all

M  +9    -2    src/filechooser.cpp

https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/3f0268306ed3d29405a74e2e562f4a391d3763c0

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

Reply via email to