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

pull/373/head
Ilya Lysenkov 12 years ago
parent 56fbcc541f
commit 3c8787980c
  1. 2
      modules/highgui/src/window_QT.cpp

@ -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",

Loading…
Cancel
Save