Commit 3c878798 authored by Ilya Lysenkov's avatar Ilya Lysenkov

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

parent 56fbcc54
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment