summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/qtcreatorpersistentsettings.cpp
diff options
context:
space:
mode:
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"));
}