From 835e376b1640ac587e25d694f7464ba8bbb6de3e Mon Sep 17 00:00:00 2001 From: yifang Date: Fri, 18 Feb 2022 20:43:07 +0800 Subject: [PATCH] fix: typo --- mainwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cc b/mainwindow.cc index ecea5e338..70fbb37f7 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -1223,7 +1223,7 @@ void MainWindow::closeEvent( QCloseEvent * ev ) translateBox->setPopupEnabled( false ); #ifdef Q_OS_MACOS - if (!event->spontaneous() || !isVisible()) { + if (!ev->spontaneous() || !isVisible()) { return; } #endif