Skip to content
Commit 0dc6351f authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

Fix Transfer::directory()

This was broken in two ways:
- QUrl::path() returns the full path including the filename, not just
  the directory
- the implicit conversion of a path results in an invalid QUrl

This caused a glitch in metalink's file selection dialog that displayed
the full destination folder hierarchy of the files to download instead
of the relative path, as it removes the result of this function from
the destination filepaths.

The KDE4 code called KUrl::upUrl() here, so return the result of
KIO::upUrl() now. (although it probably would be sufficient here to just
remove the filename...)
parent a0be949d
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