projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Load default formats correctly in all cases
[quassel.git]
/
src
/
uisupport
/
uistyle.cpp
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
b0db2ab
..
72920ba
100644
(file)
--- a/
src/uisupport/uistyle.cpp
+++ b/
src/uisupport/uistyle.cpp
@@
-117,7
+117,7
@@
void UiStyle::setFormat(FormatType ftype, QTextCharFormat fmt, Settings::Mode mo
_customFormats[ftype] = fmt;
s.setCustomFormat(ftype, fmt);
} else {
- _customFormats
[ftype] = QTextFormat().toCharFormat(
);
+ _customFormats
.remove(ftype
);
s.removeCustomFormat(ftype);
}
}