Force a repaint of the window after opening files from the command line. Closes #1419.

Originally committed to SVN as r6475.
This commit is contained in:
Thomas Goyne 2012-02-15 21:24:00 +00:00
parent a2872158a9
commit d4e1c90a04

View file

@ -525,7 +525,11 @@ bool FrameMain::LoadList(wxArrayString list) {
if (!audio.empty()) if (!audio.empty())
context->audioController->OpenAudio(audio); context->audioController->OpenAudio(audio);
return subs.size() || audio.size() || video.size(); bool loaded_any = subs.size() || audio.size() || video.size();
if (loaded_any)
Refresh(false);
return loaded_any;
} }
static void autosave_timer_changed(wxTimer *timer) { static void autosave_timer_changed(wxTimer *timer) {