Use Close rather than Destroy when closing the detached video dialog via the command

Originally committed to SVN as r5698.
This commit is contained in:
Thomas Goyne 2011-09-30 20:42:46 +00:00
parent da6a208062
commit 87290be48e

View file

@ -264,8 +264,7 @@ struct video_detach : public validator_video_loaded {
c->detachedVideo = new DialogDetachedVideo(c, c->videoBox->videoDisplay->GetClientSize());
}
else {
c->detachedVideo->Destroy();
c->detachedVideo = 0;
c->detachedVideo->Close();
}
}
};