From 00142e4cf49450723acfdfe4514afb8a3dfb8d0d Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Thu, 14 Jan 2010 18:11:32 +0100 Subject: [PATCH] Work around a Mac specific QSettings bug for the moment. --- src/app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 937f6c7076e..6293c29cc04 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -184,6 +184,11 @@ int main(int argc, char **argv) // Must be done before any QSettings class is created QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, QCoreApplication::applicationDirPath()+QLatin1String(SHARE_PATH)); +#ifdef Q_OS_MAC + // Work around bug in QSettings + QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, + QDir::homePath()+"/.config"); +#endif // keep this in sync with the MainWindow ctor in coreplugin/mainwindow.cpp const QSettings settings(QSettings::IniFormat, QSettings::UserScope, QLatin1String("Nokia"), QLatin1String("QtCreator")); -- GitLab