Skip to content

Commit af35bee

Browse files
committed
Beta version 5.12.5: Fix build with Qt 6.
1 parent 532258b commit af35bee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Telegram/SourceFiles/window/window_main_menu.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,7 @@ bool MainMenu::eventHook(QEvent *event) {
907907
|| type == QEvent::TouchUpdate
908908
|| type == QEvent::TouchEnd
909909
|| type == QEvent::TouchCancel) {
910-
QTouchEvent ev = *static_cast<QTouchEvent*>(event);
911-
ev.setTimestamp(crl::now());
912-
QGuiApplication::sendEvent(_inner, &ev);
910+
QGuiApplication::sendEvent(_inner, event);
913911
}
914912
return RpWidget::eventHook(event);
915913
}

0 commit comments

Comments
 (0)