diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-07-15 14:47:40 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-07-15 15:08:35 +0200 |
commit | 472a3e635deeadad50420de46a1119b205faaba8 (patch) | |
tree | 2bbebde2f9e207bd58addde8cd23fbddacd32552 /src/plugins/texteditor/colorscheme.cpp | |
parent | c1198e5ab9802902681d04f8958917dc9fb85f0a (diff) |
Save the foreground color even if it equals the text color
Not all colors inherit the color from the standard text. For example
line number colors.
Diffstat (limited to 'src/plugins/texteditor/colorscheme.cpp')
-rw-r--r-- | src/plugins/texteditor/colorscheme.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/colorscheme.cpp b/src/plugins/texteditor/colorscheme.cpp index 6aa4116cf6..e937d15f05 100644 --- a/src/plugins/texteditor/colorscheme.cpp +++ b/src/plugins/texteditor/colorscheme.cpp @@ -151,8 +151,7 @@ bool ColorScheme::save(const QString &fileName) const Format &format = i.next().value(); w.writeStartElement(QLatin1String("style")); w.writeAttribute(QLatin1String("name"), i.key()); - if (format.foreground().isValid() && - (i.key() == QLatin1String(Constants::C_TEXT) || format.foreground() != textFormat.foreground())) + if (format.foreground().isValid()) w.writeAttribute(QLatin1String("foreground"), format.foreground().name().toLower()); if (format.background().isValid()) w.writeAttribute(QLatin1String("background"), format.background().name().toLower()); |