Commit 88e24a61 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Force system scope for settings to be in $CREATORDIR/share/qtcreator.

Note that according to QSettings design, the file itself then is
in $CREATORDIR/share/qtcreator/Nokia/QtCreator.ini. Note case (Unix)
and Vendor dir!
parent 6ba9ae66
......@@ -180,6 +180,9 @@ int main(int argc, char **argv)
QTranslator translator;
QTranslator qtTranslator;
QString locale = QLocale::system().name();
// Must be done before any QSettings class is created
QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, 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"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment