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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user