forked from qt-creator/qt-creator
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!
This commit is contained in:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user