Diffusion Ark 36d6287503ad

cliinterface: restore old working directory after extraction

Authored by elvisangelaccio on Jul 1 2018, 9:06 PM.

Description

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

Details

Committed
elvisangelaccioJul 1 2018, 10:14 PM
Parents
R36:478d2d71f861: libarchive: restore old working directory after extraction
Branches
Unknown
Tags
Unknown