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.
This commit is contained in:
Thomas Goyne 2010-02-14 22:02:33 +00:00
parent 621cefe14e
commit 509f748cfb

View file

@ -274,6 +274,8 @@ void VideoContext::SetVideo(const wxString &filename) {
// Show warning // Show warning
wxString warning = provider->GetWarning().c_str(); wxString warning = provider->GetWarning().c_str();
if (!warning.IsEmpty()) wxMessageBox(warning,_T("Warning"),wxICON_WARNING | wxOK); if (!warning.IsEmpty()) wxMessageBox(warning,_T("Warning"),wxICON_WARNING | wxOK);
UpdateDisplays(true);
} }
catch (wxString &e) { catch (wxString &e) {