From 87290be48e0bcd46c7efb11e332b9a55b28bc559 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 30 Sep 2011 20:42:46 +0000 Subject: [PATCH] Use Close rather than Destroy when closing the detached video dialog via the command Originally committed to SVN as r5698. --- aegisub/src/command/video.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/src/command/video.cpp b/aegisub/src/command/video.cpp index 80a6943bc..d177d8c52 100644 --- a/aegisub/src/command/video.cpp +++ b/aegisub/src/command/video.cpp @@ -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(); } } };