qt: Disable processing of alt-f4 in windows.
Prevents the alt-f4 from quiting 86Box.
This commit is contained in:
@@ -437,6 +437,11 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||
if (mouse_capture) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
if (confirm_exit && confirm_exit_cmdl && cpu_thread_run)
|
||||
{
|
||||
QMessageBox questionbox(QMessageBox::Icon::Question, "86Box", tr("Are you sure you want to exit 86Box?"), QMessageBox::Yes | QMessageBox::No, this);
|
||||
|
||||
Reference in New Issue
Block a user