mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Try cancelling the new search by mouse back button.
This commit is contained in:
@@ -2649,7 +2649,8 @@ bool MainWidget::eventFilter(QObject *o, QEvent *e) {
|
||||
if (widget && (widget->window() == window())) {
|
||||
const auto event = static_cast<QMouseEvent*>(e);
|
||||
if (event->button() == Qt::BackButton) {
|
||||
if (!Core::App().hideMediaView()) {
|
||||
if (!Core::App().hideMediaView()
|
||||
&& (!_dialogs || !_dialogs->cancelSearchByMouseBack())) {
|
||||
handleHistoryBack();
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user