Changed: Use getInstallerCurrentDirPath() instead of QApplication::applicationDirPath()

--HG--
branch : develop
This commit is contained in:
kervala 2016-10-18 10:24:10 +02:00
parent 29aa0c1722
commit 508a6723a2

View file

@ -157,7 +157,7 @@ int main(int argc, char *argv[])
QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation); QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
// check if launched from TEMP directory // check if launched from TEMP directory
if (step == Done && !QApplication::applicationDirPath().startsWith(tempPath)) if (step == Done && !config.getInstallerCurrentDirPath().startsWith(tempPath))
{ {
// try to delete all temporary installers // try to delete all temporary installers
QDir tempDir(tempPath); QDir tempDir(tempPath);