Merge pull request #373 from ilysenkov:bugfix_2440
This commit is contained in:
commit
9b4f2d1b53
@ -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",
|
||||||
|
@ -58,6 +58,9 @@ void Foo(int /*k*/, void* /*z*/) {}
|
|||||||
|
|
||||||
void CV_HighGuiOnlyGuiTest::run( int /*start_from */)
|
void CV_HighGuiOnlyGuiTest::run( int /*start_from */)
|
||||||
{
|
{
|
||||||
|
ts->printf(ts->LOG, "GUI 0\n");
|
||||||
|
cvDestroyAllWindows();
|
||||||
|
|
||||||
ts->printf(ts->LOG, "GUI 1\n");
|
ts->printf(ts->LOG, "GUI 1\n");
|
||||||
namedWindow("Win");
|
namedWindow("Win");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user