mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
When mmg is called with an argument then check the file name extension first. If it is 'mmg' then try to load the file as a settings file (as before). Otherwise try adding the file.
This commit is contained in:
parent
b3b05e3186
commit
858536a516
@ -1,3 +1,9 @@
|
||||
2007-06-30 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: enhancement: mmg can now be called iwth any file name as an
|
||||
argument. If it ends with 'mmg' then the file will be loaded as a
|
||||
'mmg settings file'. Otherwise mmg will 'add' it. Fix for bug 243.
|
||||
|
||||
2007-06-27 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: The OGM reader uses the OGM's timestamps for
|
||||
|
@ -878,7 +878,11 @@ mmg_dialog::mmg_dialog():
|
||||
if ((file.Length() > 0) && (file.c_str()[0] != wxT('/')))
|
||||
file = wxGetCwd() + wxT("/") + file;
|
||||
#endif
|
||||
load(file);
|
||||
|
||||
if (wxFileName(file).GetExt() == wxU("mmg"))
|
||||
load(file);
|
||||
else
|
||||
input_page->add_file(file, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user