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:
Moritz Bunkus 2007-06-30 10:08:45 +00:00
parent b3b05e3186
commit 858536a516
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);
}
}
}