From 7f036a60976ec6ccae70a95f43ca2ca838b384f8 Mon Sep 17 00:00:00 2001 From: kh1 Date: Mon, 10 Nov 2014 15:54:36 +0100 Subject: Do not read the internal ini file through the wrapper class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Niels Weber Reviewed-by: Kai Koehne --- src/libs/installer/packagemanagercore_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3