From af35beefc2b532efcdaaff83c3cf7dd438bb62ea Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 14 Mar 2025 17:23:54 +0400 Subject: [PATCH] Beta version 5.12.5: Fix build with Qt 6. --- Telegram/SourceFiles/window/window_main_menu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index d035668295..f61b217a24 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -907,9 +907,7 @@ bool MainMenu::eventHook(QEvent *event) { || type == QEvent::TouchUpdate || type == QEvent::TouchEnd || type == QEvent::TouchCancel) { - QTouchEvent ev = *static_cast(event); - ev.setTimestamp(crl::now()); - QGuiApplication::sendEvent(_inner, &ev); + QGuiApplication::sendEvent(_inner, event); } return RpWidget::eventHook(event); }