Fix extraction to directories with unicode names when using the Extract file menu
Before this patch, BatchExtract::setDirectory()
will ignore directories like
" " (a single tab) or "This is an emoji QUrl::toDisplayString()
returns
a percent-encoded name which does not get percent-decoded.
As QUrl::toDisplayString()
seems to always return percent-encoded strings regardless of FormattingOption
(see https://stackoverflow.com/questions/24343582/convert-qurl-with-percent-encoding-into-string/24394362#24394362),
QUrl::path()
is used as it defaults to QUrl::FullyDecoded
.
This bug was only present on the extract file menu (via dolphin context menu).
Edited by Jan Paul Batrina