Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
56aac18b
Commit
56aac18b
authored
Jan 21, 2010
by
Daniel Molkentin
Browse files
Extend QSettings workaround to Windows.
parent
c4d1553d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/main.cpp
View file @
56aac18b
...
...
@@ -184,11 +184,17 @@ 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
));
// Work around bug in QSettings which gets triggered on Windows & Mac only
#ifdef Q_OS_MAC
// Work around bug in QSettings
QSettings
::
setPath
(
QSettings
::
IniFormat
,
QSettings
::
UserScope
,
QDir
::
homePath
()
+
"/.config"
);
#endif
#ifdef Q_OS_WIN
QSettings
::
setPath
(
QSettings
::
IniFormat
,
QSettings
::
UserScope
,
qgetenv
(
"appdata"
));
#endif
// keep this in sync with the MainWindow ctor in coreplugin/mainwindow.cpp
const
QSettings
settings
(
QSettings
::
IniFormat
,
QSettings
::
UserScope
,
QLatin1String
(
"Nokia"
),
QLatin1String
(
"QtCreator"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment