diff --git a/gb.qt5/src/main.cpp b/gb.qt5/src/main.cpp index 1136a543e..ef8632a19 100644 --- a/gb.qt5/src/main.cpp +++ b/gb.qt5/src/main.cpp @@ -772,6 +772,7 @@ static void hook_quit() CWINDOW_close_all(true); CWINDOW_delete_all(true); + CMOUSE_set_control(NULL); qApp->sendPostedEvents(); //processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::DeferredDeletion, 0); qApp->sendPostedEvents(0, QEvent::DeferredDelete);