Fix rare crash when clicking in a ChannelView

This commit is contained in:
Rasmus Karlsson 2018-06-05 15:01:40 +02:00
parent 7c81477c35
commit c81df989c5

View file

@ -835,10 +835,10 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
SelectionItem selectionItem(lastMessageIndex, lastCharacterIndex); SelectionItem selectionItem(lastMessageIndex, lastCharacterIndex);
this->setSelection(selectionItem, selectionItem); this->setSelection(selectionItem, selectionItem);
}
return; return;
} }
}
// check if message is collapsed // check if message is collapsed
if (layout->flags & MessageLayout::Collapsed) { if (layout->flags & MessageLayout::Collapsed) {