1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge branch 4.x

This commit is contained in:
Alexander Smorkalov
2026-02-11 13:54:39 +03:00
committed by Alexander Smorkalov
468 changed files with 16647 additions and 11284 deletions
+9 -6
View File
@@ -790,14 +790,17 @@ GuiReceiver::GuiReceiver() : bTimeOut(false), nb_windows(0)
void GuiReceiver::isLastWindow()
{
if (--nb_windows <= 0)
if (qApp->quitOnLastWindowClosed())
{
delete guiMainThread;//delete global_control_panel too
guiMainThread = NULL;
if (doesExternalQAppExist)
if (--nb_windows <= 0)
{
qApp->quit();
delete guiMainThread; // delete global_control_panel too
guiMainThread = NULL;
if (doesExternalQAppExist)
{
qApp->quit();
}
}
}
}