summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2011-06-10 09:39:58 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2011-06-10 09:39:58 +0200
commitb63143c580fc7db949041708ab1957c5baf029b3 (patch)
treec48eb44a49d521c09c9645a0bfbce46b5b7ee35d /installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
parent90cfad939aa8631cd778a21e112e40bbc8397e20 (diff)
don't create the file it self as a path only the path to the file
Diffstat (limited to 'installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp')
-rw-r--r--installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp b/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
index d85852527..476a0bbbc 100644
--- a/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
+++ b/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
@@ -192,6 +192,8 @@ bool QtCreatorPersistentSettings::save()
m_writer.saveValue(QLatin1String(TOOLCHAIN_FILE_VERSION_KEY), 1);
- QDir().mkpath(QDir(m_fileName).absolutePath());
+ QDir pathToFile(m_fileName);
+ pathToFile.cdUp();
+ QDir().mkpath(pathToFile.absolutePath());
return m_writer.save(m_fileName, QLatin1String("QtCreatorToolChains"));
}