Don't try to detach on video open if the video is already detached

Originally committed to SVN as r5692.
This commit is contained in:
Thomas Goyne 2011-09-30 20:41:44 +00:00
parent bdcc2ec170
commit 597dd4bb8e
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ void FrameMain::OnVideoOpen() {
SetDisplayMode(1,-1);
if (OPT_GET("Video/Detached/Enabled")->GetBool())
if (OPT_GET("Video/Detached/Enabled")->GetBool() && !context->detachedVideo)
cmd::call("video/detach", context.get());
Thaw();
}