mirror of https://github.com/odrling/Aegisub
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:
parent
621cefe14e
commit
509f748cfb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue