Handle all message types properly in UiStyle; eliminate msgtype format codes
[quassel.git] / src / qtui / topiclabel.cpp
index 8703142..e74d5dc 100644 (file)
@@ -78,7 +78,7 @@ void TopicLabel::setText(const QString &text) {
   offset = 0;
   update();
 
-  UiStyle::StyledString styledContents = QtUi::style()->styleString("%D0" + QtUi::style()->mircToInternal(text));
+  UiStyle::StyledString styledContents = QtUi::style()->styleString(QtUi::style()->mircToInternal(text), UiStyle::PlainMsg);
   plainText = styledContents.plainText;
   formatList = QtUi::style()->toTextLayoutList(styledContents.formatList, plainText.length());
   int height = 1;