Fixed cvDestroyAllWindows() without windows in QT (#2440)

This commit is contained in:
Ilya Lysenkov 2013-01-30 15:26:49 +04:00
parent 56fbcc541f
commit 3c8787980c

View File

@ -499,7 +499,7 @@ CV_IMPL void cvDestroyWindow(const char* name)
CV_IMPL void cvDestroyAllWindows()
{
if (!guiMainThread)
CV_Error( CV_StsNullPtr, "NULL guiReceiver (please create a window)" );
return;
QMetaObject::invokeMethod(guiMainThread,
"destroyAllWindow",