X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=79f23c6727d56e53015b9e94d1fa371270defdbb;hp=e04a0bd0508987d8b72416867ab4491aed87b4ef;hb=682c6e31834a863c4c78b6dfd5f830c72a6b665d;hpb=78a8bcf6dad0d0c9b83a183afdd3dc0591332350 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index e04a0bd0..79f23c67 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -132,7 +132,7 @@ QString UiStyle::formatCode(FormatType ftype) const { UiStyle::StyledText UiStyle::styleString(const QString &_s) { QString s = _s; // we can't use call-by-value since this seems to maybe screw up Qt's implicit sharing somehow // at least invalid formats are created if we do that - + if(s.startsWith(" ")) {}; // and yet some other stupid no-op that seems to fix the font issue on some machines... -_- StyledText result; QList fmtList; fmtList.append(None);