Skip to content
Commit 10a8accf authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

QXdgDesktopPortalFileDialog: use QUrl to store directory & selection

Fixes QXdgDesktopPortalFileDialog::directory() returning a broken QUrl.
while making other code consistent & more fail-proof.

Old code had some mixups where the used plain strings had file:/// scheme
prefixes if read out from the "uris" of the D-Bus replies, but not when
generated from QUrls passed in by the own API.
Also is the usage of QUrl::fromLocalFile/toLocalFile preferred over
getting a QUrl's  path() property.
parent 87797505
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