Fixed double click in emote popup. (#679)

This commit is contained in:
23rd 2018-08-25 11:08:10 +03:00 committed by pajlada
parent fec89a4807
commit d6c4244b79

View file

@ -1025,7 +1025,10 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
auto &link = hoveredElement->getLink(); auto &link = hoveredElement->getLink();
if (!getSettings()->linksDoubleClickOnly) { if (!getSettings()->linksDoubleClickOnly) {
this->handleLinkClick(event, link, layout); this->handleLinkClick(event, link, layout);
}
// Invoke to signal from EmotePopup.
if (link.type == Link::InsertText) {
this->linkClicked.invoke(link); this->linkClicked.invoke(link);
} }
} break; } break;