X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=487c2f2fc7e3a23db72df88ad732b7b58b245125;hp=bfd255c445f47ccf0df62b05b7963832dea2fbed;hb=39e2a78383295f86c5aa2dadbeac6f02b53eb7a4;hpb=11da6dc67a8a8934289704cafdb808d7c92cfae2 diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index bfd255c4..487c2f2f 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -46,8 +46,8 @@ QVariant ChatItem::data(int role) const { } int ChatItem::setWidth(int w) { - w -= 10; if(w == _boundingRect.width()) return _boundingRect.height(); + prepareGeometryChange(); _boundingRect.setWidth(w); int h = heightForWidth(w); _boundingRect.setHeight(h);