Reply in replies by double click.

This commit is contained in:
John Preston 2020-09-01 17:09:54 +04:00
parent 17549ad5ea
commit 9fe82480e1
1 changed files with 11 additions and 0 deletions

View File

@ -1614,6 +1614,17 @@ void ListWidget::keyPressEvent(QKeyEvent *e) {
void ListWidget::mouseDoubleClickEvent(QMouseEvent *e) {
mouseActionStart(e->globalPos(), e->button());
trySwitchToWordSelection();
if (!ClickHandler::getActive()
&& !ClickHandler::getPressed()
&& (_mouseCursorState == CursorState::None
|| _mouseCursorState == CursorState::Date)
&& _selected.empty()
&& (_mouseAction != MouseAction::Selecting)
&& _overElement
&& IsServerMsgId(_overElement->data()->id)) {
mouseActionCancel();
replyToMessageRequestNotify(_overElement->data()->fullId());
}
}
void ListWidget::trySwitchToWordSelection() {