From 1dd3ff609d31d8e90635c70816f616b3c9686ef2 Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 15 Mar 2021 20:59:42 +0100 Subject: [PATCH] Really don't leak a control if we quit between a MouseDown and a MouseUp event. [GB.QT5] * BUG: Really don't leak a control if we quit between a MouseDown and a MouseUp event. --- gb.qt5/src/main.cpp | 1 + 1 file changed, 1 insertion(+) 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);