Allow to reply by double click on timestamp

Based on telegramdesktop/tdesktop@def21367
Related to #10, #117, #118
This commit is contained in:
leha-bot 2018-03-17 05:13:26 +03:00
parent ea6d487aab
commit a5cd36b465
1 changed files with 2 additions and 1 deletions

View File

@ -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);