From ba31cfa50552e7a0b8b095b4d20e612f61f56783 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Thu, 14 Jan 2010 16:35:44 +0100 Subject: [PATCH] Fix the path for global configuration. --- src/app/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 709a6cf91d6..937f6c7076e 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -182,7 +182,8 @@ int main(int argc, char **argv) QString locale = QLocale::system().name(); // Must be done before any QSettings class is created - QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, QLatin1String(SHARE_PATH)); + QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, + QCoreApplication::applicationDirPath()+QLatin1String(SHARE_PATH)); // keep this in sync with the MainWindow ctor in coreplugin/mainwindow.cpp const QSettings settings(QSettings::IniFormat, QSettings::UserScope, QLatin1String("Nokia"), QLatin1String("QtCreator")); -- GitLab