X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=13e8462de38df2b11fa253c97a8f322f8e3f15bb;hp=0fbfed4d712d8da3f2e883bd980e9aad13f365bb;hb=137d98841d0ca720732b9d47658170b0421d86bc;hpb=fb60aceb5dfb0305e363b59c7b207dc0e9beee6f diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index 0fbfed4d..13e8462d 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -201,6 +201,11 @@ void CoreSession::recvMessageFromServer(Message::Type type, BufferInfo::Type buf CoreNetwork *net = qobject_cast(this->sender()); Q_ASSERT(net); + // U+FDD0 and U+FDD1 are special characters for Qt's text engine, specifically they mark the boundaries of + // text frames in a QTextDocument. This might lead to problems in widgets displaying QTextDocuments (such as + // KDE's notifications), hence we remove those just to be safe. + text.remove(QChar(0xfdd0)).remove(QChar(0xfdd1)); + BufferInfo bufferInfo = Core::bufferInfo(user(), net->networkId(), bufferType, target); Message msg(bufferInfo, type, text, sender, flags); msg.setMsgId(Core::storeMessage(msg));