Skip to content
Commit 36d62875 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

cliinterface: restore old working directory after extraction

Otherwise Ark might prevent unmounting of removable devices.

To fix this issue we only need to save the current working dir before
the very first `QDir::setCurrent()` call in `extractFiles()`, and also
to restore it at the end of every extraction.

However, since `m_oldWorkingDir` is used also by copy and move jobs, we
can't touch it from extract jobs, otherwise we'll break `movetest`.

As workaround, we can use a new variable that will be used only by
extract jobs.

BUG: 395939
FIXED-IN: 18.07.80
parent 478d2d71
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