From 1ab8aa2463bf115a69ed321995124fd7e3152c71 Mon Sep 17 00:00:00 2001 From: leha-bot Date: Sat, 17 Mar 2018 05:13:26 +0300 Subject: [PATCH] Allow to reply by double click on timestamp Based on telegramdesktop/tdesktop@def21367 Related to #10, #117, #118 --- Telegram/SourceFiles/history/history_inner_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index bb81a303e..404137e5e 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -1139,7 +1139,8 @@ void HistoryInner::mouseDoubleClickEvent(QMouseEvent *e) { } if (!ClickHandler::getActive() && !ClickHandler::getPressed() - && _mouseCursorState == HistoryDefaultCursorState) { + && (_mouseCursorState == HistoryDefaultCursorState + || _mouseCursorState == HistoryInDateCursorState)) { if (const auto item = _mouseActionItem) { mouseActionCancel(); App::contextItem(item);