X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.cpp;h=9c99ece80b7046297f8649072c2b7914ad6b323c;hb=e30092afc1803d753914a7ab9fa88bba818de559;hp=95d6284bd4619690188ff3de275ea46cb1eab45a;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/qtui/topicwidget.cpp b/src/qtui/topicwidget.cpp index 95d6284b..9c99ece8 100644 --- a/src/qtui/topicwidget.cpp +++ b/src/qtui/topicwidget.cpp @@ -281,6 +281,9 @@ QString TopicWidget::sanitizeTopic(const QString& topic) // some unicode characters with a new line, which then triggers // a stack overflow later QString result(topic); +#if QT_VERSION >= 0x050000 + result.replace(QChar::CarriageReturn, " "); +#endif result.replace(QChar::ParagraphSeparator, " "); result.replace(QChar::LineSeparator, " ");