From 749f837df5fcd4722bf840b81b317140b807188c Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 7 Jan 2022 08:32:29 +0300 Subject: [PATCH] Fixed Home and End keys in calendar box. --- Telegram/SourceFiles/ui/boxes/calendar_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp index eef26902cb..604c907e7b 100644 --- a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp @@ -932,9 +932,9 @@ void CalendarBox::jump(QPointer button) { _context->showMonth(_context->dateFromIndex(index)); setExactScroll(); }; - if (_jumpButton == _previous.data() && _previousEnabled) { + if (button == _previous.data() && _previousEnabled) { jumpToIndex(_context->minDayIndex()); - } else if (_jumpButton == _next.data() && _nextEnabled) { + } else if (button == _next.data() && _nextEnabled) { jumpToIndex(_context->maxDayIndex()); } _jumpButton = nullptr;