From 509f748cfb7ab05482ce710c71f1001801cc2316 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 14 Feb 2010 22:02:33 +0000 Subject: [PATCH] Make VideoContext::SetVideo explicitly call VideoContext::UpdateDisplays rather than relying on the calling code restoring it to a consistent state. Updates #1159. Originally committed to SVN as r4101. --- aegisub/src/video_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/video_context.cpp b/aegisub/src/video_context.cpp index cdcf72d62..4e1ede5e1 100644 --- a/aegisub/src/video_context.cpp +++ b/aegisub/src/video_context.cpp @@ -274,6 +274,8 @@ void VideoContext::SetVideo(const wxString &filename) { // Show warning wxString warning = provider->GetWarning().c_str(); if (!warning.IsEmpty()) wxMessageBox(warning,_T("Warning"),wxICON_WARNING | wxOK); + + UpdateDisplays(true); } catch (wxString &e) {