Fixed cvDestroyAllWindows() without windows in QT (#2440)
This commit is contained in:
parent
56fbcc541f
commit
3c8787980c
@ -499,7 +499,7 @@ CV_IMPL void cvDestroyWindow(const char* name)
|
|||||||
CV_IMPL void cvDestroyAllWindows()
|
CV_IMPL void cvDestroyAllWindows()
|
||||||
{
|
{
|
||||||
if (!guiMainThread)
|
if (!guiMainThread)
|
||||||
CV_Error( CV_StsNullPtr, "NULL guiReceiver (please create a window)" );
|
return;
|
||||||
|
|
||||||
QMetaObject::invokeMethod(guiMainThread,
|
QMetaObject::invokeMethod(guiMainThread,
|
||||||
"destroyAllWindow",
|
"destroyAllWindow",
|
||||||
|
Loading…
Reference in New Issue
Block a user