summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore_p.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-11-10 15:54:36 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-11 11:59:22 +0100
commit7f036a60976ec6ccae70a95f43ca2ca838b384f8 (patch)
treeeacbafc075f503c9b7df1d03ce1855ce13d375f0 /src/libs/installer/packagemanagercore_p.cpp
parentc14a491a8c460b2a4971244283e56288eb81e596 (diff)
Do not read the internal ini file through the wrapper class.
If the remote server is running and we are connected, it tries to read the value on the remote side, though since no resources are mapped the return value is undefined. Fixes for example installations into %PROGRAMFILES% on windows. Change-Id: I6e3c20c9a8bc00270cbdda36142b74570dad14ec Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.cpp')
-rw-r--r--src/libs/installer/packagemanagercore_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagercore_p.cpp b/src/libs/installer/packagemanagercore_p.cpp
index 0f5fb3e2c..cbc097f18 100644
--- a/src/libs/installer/packagemanagercore_p.cpp
+++ b/src/libs/installer/packagemanagercore_p.cpp
@@ -598,7 +598,7 @@ bool PackageManagerCorePrivate::isOfflineOnly() const
if (!isInstaller())
return false;
- QSettingsWrapper confInternal(QLatin1String(":/config/config-internal.ini"), QSettingsWrapper::IniFormat);
+ QSettings confInternal(QLatin1String(":/config/config-internal.ini"), QSettings::IniFormat);
return confInternal.value(QLatin1String("offlineOnly"), false).toBool();
}