Reply by double clicking a message.

This commit is contained in:
John Preston 2018-02-28 15:07:15 +03:00
parent ef8b6d1a3d
commit 128663d95b

View file

@ -1352,6 +1352,14 @@ void HistoryInner::mouseDoubleClickEvent(QMouseEvent *e) {
_trippleClickTimer.start(QApplication::doubleClickInterval());
}
}
if (!ClickHandler::getActive()
&& !ClickHandler::getPressed()
&& _mouseCursorState == CursorState::None) {
if (const auto item = _mouseActionItem) {
mouseActionCancel();
_widget->replyToMessage(item);
}
}
}
void HistoryInner::contextMenuEvent(QContextMenuEvent *e) {