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