forked from mia/Aegisub
Fix assert failure when opening with no args
This commit is contained in:
parent
14a80dbabd
commit
a315ce6903
1 changed files with 2 additions and 1 deletions
|
@ -318,6 +318,7 @@ bool AegisubApp::OnInit() {
|
|||
// Get parameter subs
|
||||
StartupLog("Parse command line");
|
||||
auto const& args = argv.GetArguments();
|
||||
if (args.size() > 1)
|
||||
OpenFiles(wxArrayStringsAdapter(args.size() - 1, &args[1]));
|
||||
}
|
||||
catch (agi::Exception const& e) {
|
||||
|
|
Loading…
Reference in a new issue