Load default formats correctly in all cases
[quassel.git] / src / uisupport / uistyle.cpp
index b0db2ab..72920ba 100644 (file)
@@ -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);
     }
   }