diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-01-13 14:45:32 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-01-13 17:17:12 +0100 |
commit | 87a7ed94a3e5d57c02cfc68a8be87a76109bdb0b (patch) | |
tree | fc1fd58c78271ef29a619da1aba3485a2658a047 /src/plugins/texteditor/colorscheme.cpp | |
parent | 232db42069cc6da3c8e89d0a37c155ee43888a27 (diff) |
Fixed an issue with keeping a shipped color scheme selected
When the path to the shipped color schemes changes, Qt Creator was
unable to load the chosen color scheme. Now, when it can't find the
color scheme, it will look for it in the default color scheme path.
Reviewed-by: con
Diffstat (limited to 'src/plugins/texteditor/colorscheme.cpp')
-rw-r--r-- | src/plugins/texteditor/colorscheme.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/texteditor/colorscheme.cpp b/src/plugins/texteditor/colorscheme.cpp index 87ab6efe0cb..545702efcc7 100644 --- a/src/plugins/texteditor/colorscheme.cpp +++ b/src/plugins/texteditor/colorscheme.cpp @@ -145,8 +145,6 @@ bool ColorScheme::save(const QString &fileName) const if (!m_name.isEmpty()) w.writeAttribute(QLatin1String("name"), m_name); - Format textFormat = formatFor(QLatin1String(Constants::C_TEXT)); - QMapIterator<QString, Format> i(m_formats); while (i.hasNext()) { const Format &format = i.next().value(); |