Rearrange FrameMain's constructor so that the frame is shown before the updates check and files are loaded. Fixes some ugliness and a bug where the detached video dialog wasn't being parented correctly

Originally committed to SVN as r5700.
This commit is contained in:
Thomas Goyne 2011-09-30 20:43:04 +00:00
parent e2ea5598fc
commit 76467584bb

View file

@ -191,8 +191,9 @@ FrameMain::FrameMain (wxArrayString args)
StartupLog("Load default file");
context->ass->LoadDefault();
StartupLog("Load files specified on command line");
LoadList(args);
StartupLog("Display main window");
Show();
SetDisplayMode(1, 1);
// Version checker
StartupLog("Possibly perform automatic updates check");
@ -204,9 +205,8 @@ FrameMain::FrameMain (wxArrayString args)
PerformVersionCheck(false);
StartupLog("Display main window");
Show();
SetDisplayMode(1, 1);
StartupLog("Load files specified on command line");
LoadList(args);
StartupLog("Leaving FrameMain constructor");
}