diff --git a/messagelist/src/core/messageitem.cpp b/messagelist/src/core/messageitem.cpp --- a/messagelist/src/core/messageitem.cpp +++ b/messagelist/src/core/messageitem.cpp @@ -526,7 +526,12 @@ return this; } if (parent()->type() == Item::Message) { - return static_cast< MessageItem * >(parent())->topmostMessage(); + MessageItem *tItem = static_cast< MessageItem * >(parent())->topmostMessage(); + if (this != tItem) { + return tItem; + } else { + return this; + } } return this; }