From 5c14027b2cc495d596d0741b052aec6159646ba8 Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Tue, 3 Feb 2015 12:56:57 +0100 Subject: Revert "Allow spaces in path by default" The change did the opposite of what it claims. This reverts commit b843bff42705044eb88bc87298873ed6f7a93c55. Change-Id: I79b1527a95ce64472b7cc20bc83649aef1b90127 Reviewed-by: Karsten Heimrich --- src/libs/installer/settings.cpp | 2 +- tests/auto/installer/settings/tst_settings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/installer/settings.cpp b/src/libs/installer/settings.cpp index b591eed90..26d0f7600 100644 --- a/src/libs/installer/settings.cpp +++ b/src/libs/installer/settings.cpp @@ -474,7 +474,7 @@ bool Settings::createLocalRepository() const bool Settings::allowSpaceInPath() const { - return d->m_data.value(scAllowSpaceInPath, false).toBool(); + return d->m_data.value(scAllowSpaceInPath, true).toBool(); } bool Settings::allowNonAsciiCharacters() const diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp index 018650b1c..6deea6093 100644 --- a/tests/auto/installer/settings/tst_settings.cpp +++ b/tests/auto/installer/settings/tst_settings.cpp @@ -70,7 +70,7 @@ void tst_Settings::loadTutorialConfig() QCOMPARE(settings.configurationFileName(), QLatin1String("components.xml")); QCOMPARE(settings.dependsOnLocalInstallerBinary(), false); QCOMPARE(settings.repositorySettingsPageVisible(), true); - QCOMPARE(settings.allowSpaceInPath(), false); + QCOMPARE(settings.allowSpaceInPath(), true); QCOMPARE(settings.allowNonAsciiCharacters(), false); QCOMPARE(settings.createLocalRepository(), false); -- cgit v1.2.3