Fix explicit working dir by "-workdir" in Windows.

Regression was introduced in ff84962148.

Fixes #4129.
This commit is contained in:
John Preston 2017-12-08 12:13:42 +04:00
parent 79398fe6cf
commit 8f87cfe29d
1 changed files with 7 additions and 0 deletions

View File

@ -344,6 +344,13 @@ namespace Logs {
cForceWorkingDir(psAppDataPath());
#endif // !_DEBUG
workingDirChosen = true;
#elif defined Q_OS_WIN
} else {
if (!cWorkingDir().isEmpty()) {
// This value must come only from the "-workdir" argument.
cForceWorkingDir(cWorkingDir());
workingDirChosen = true;
}
#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE
}