Changed: Only check if Ryzom is installed in current directory under Windows

This commit is contained in:
kervala 2016-10-21 12:57:35 +02:00
parent 486282262e
commit 2f0bf8a69f

View file

@ -839,8 +839,13 @@ OperationStep CConfigFile::getInstallNextStep() const
// only show wizard if installation directory undefined // only show wizard if installation directory undefined
if (getInstallationDirectory().isEmpty()) if (getInstallationDirectory().isEmpty())
{ {
QString currentDirectory;
#ifdef Q_OS_WIN32
// only under Windows
// if launched from current directory, it means we just patched files // if launched from current directory, it means we just patched files
QString currentDirectory = getCurrentDirectory(); currentDirectory = getCurrentDirectory();
if (!isRyzomInstalledIn(currentDirectory)) if (!isRyzomInstalledIn(currentDirectory))
{ {
@ -852,6 +857,7 @@ OperationStep CConfigFile::getInstallNextStep() const
currentDirectory.clear(); currentDirectory.clear();
} }
} }
#endif
// install or migrate depending if Ryzom was found in current directory // install or migrate depending if Ryzom was found in current directory
return currentDirectory.isEmpty() ? ShowInstallWizard:ShowMigrateWizard; return currentDirectory.isEmpty() ? ShowInstallWizard:ShowMigrateWizard;