From d018740442e5c8f3c5a22c11a01a97502c3835e8 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 26 Feb 2022 19:32:28 +0100 Subject: [PATCH] Fix potential deadlock in ShowMatchDialog --- src/external-macro-modules/opencv/video-match-dialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/external-macro-modules/opencv/video-match-dialog.cpp b/src/external-macro-modules/opencv/video-match-dialog.cpp index 8281e30d..830c5ca8 100644 --- a/src/external-macro-modules/opencv/video-match-dialog.cpp +++ b/src/external-macro-modules/opencv/video-match-dialog.cpp @@ -71,11 +71,8 @@ void ShowMatchDialog::CheckForMatchLoop() continue; } auto image = MarkMatch(screenshot.image); - if (_stop) { - return; - } QMetaObject::invokeMethod(this, "RedrawImage", - Qt::BlockingQueuedConnection, + Qt::QueuedConnection, Q_ARG(QImage, image)); } }