Commit 65614265 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Delete the useless 'Transparency=' entries when saving colorscheme

parent 822f771c
...@@ -353,6 +353,9 @@ void ColorScheme::writeColorEntry(KConfig& config , int index) const ...@@ -353,6 +353,9 @@ void ColorScheme::writeColorEntry(KConfig& config , int index) const
if ( configGroup.hasKey("Transparent") ) { if ( configGroup.hasKey("Transparent") ) {
configGroup.deleteEntry("Transparent"); configGroup.deleteEntry("Transparent");
} }
if ( configGroup.hasKey("Transparency") ) {
configGroup.deleteEntry("Transparency");
}
if (entry.fontWeight != ColorEntry::UseCurrentFormat) { if (entry.fontWeight != ColorEntry::UseCurrentFormat) {
configGroup.writeEntry("Bold", entry.fontWeight == ColorEntry::Bold); configGroup.writeEntry("Bold", entry.fontWeight == ColorEntry::Bold);
} }
......
Markdown is supported
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