From 6da250ef02b273ce360bdb9259fdfc823b8251c0 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 23 Oct 2016 16:28:17 +0200 Subject: [PATCH] Fixed: Clear m_srcDirectory if directory doesn't exist anymore --- code/ryzom/tools/client/ryzom_installer/src/configfile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp index 043d9b130..cf5be876c 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp @@ -83,6 +83,9 @@ bool CConfigFile::load(const QString &filename) m_use64BitsClient = settings.value("use_64bits_client", true).toBool(); m_shouldUninstallOldClient = settings.value("should_uninstall_old_client", true).toBool(); + // fix problems when src directory doesn't exist anymore + if (!m_srcDirectory.isEmpty() && QFile::exists(m_srcDirectory)) m_srcDirectory.clear(); + if (!useDefaultValues) { #if defined(Q_OS_WIN)