mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
Don't add empty arguments to mkvmerge's command line for options given with "add command line options".
Fix for bug 429.
This commit is contained in:
parent
a342ae89c4
commit
fb7a185d4d
@ -1030,8 +1030,11 @@ mmg_dialog::update_command_line() {
|
||||
cli_options = strip(cli_options);
|
||||
if (cli_options.length() > 0) {
|
||||
std::vector<wxString> opts = split(cli_options, wxString(wxT(" ")));
|
||||
for (i = 0; i < opts.size(); i++)
|
||||
clargs.Add(strip(opts[i]));
|
||||
for (i = 0; i < opts.size(); i++) {
|
||||
wxString opt = strip(opts[i]);
|
||||
if (!opt.IsEmpty())
|
||||
clargs.Add(opt);
|
||||
}
|
||||
}
|
||||
|
||||
cmdline = wxT("\"") + shell_escape(options.mkvmerge, true) + wxT("\" -o \"") + shell_escape(tc_output->GetValue()) + wxT("\" ");
|
||||
|
Loading…
Reference in New Issue
Block a user