From d4e1c90a04b33a908e6e32f424e4490bcee57202 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 15 Feb 2012 21:24:00 +0000 Subject: [PATCH] Force a repaint of the window after opening files from the command line. Closes #1419. Originally committed to SVN as r6475. --- aegisub/src/frame_main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index 0cbf65130..558ad5e07 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -525,7 +525,11 @@ bool FrameMain::LoadList(wxArrayString list) { if (!audio.empty()) 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) {