X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;fp=src%2Fqtui%2Fchatitem.cpp;h=9fadc127a7612c84590af3ae377f142167a70f0e;hp=10b7d78068dba35629e1cca8ad97b9e18a0ca268;hb=35c39237136ab3ddc94d20d8280b7bf6680f07c2;hpb=8d736eb601e79e8fe1a866eb67e626b33f651d7a diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 10b7d780..9fadc127 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -312,7 +312,7 @@ QVector ChatItem::additionalFormats() const return LabelFormat{f.first, f.second, itemLabel}; }); // Append dummy element to avoid special-casing handling the last real format - labelFmtList.push_back(LabelFormat{quint16(data(MessageModel::DisplayRole).toString().length()), {}, itemLabel}); + labelFmtList.push_back(LabelFormat{quint16(data(MessageModel::DisplayRole).toString().length()), Format(), itemLabel}); // Apply the given label to the given range in the format list, splitting formats as necessary auto applyLabel = [&labelFmtList](quint16 start, quint16 end, Label label) {