mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 02:39:37 +00:00
Changed: Use getInstallerCurrentDirPath() instead of QApplication::applicationDirPath()
This commit is contained in:
parent
746336f249
commit
f413f6e488
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue