Suggest a job name based on the output file name.

This commit is contained in:
Moritz Bunkus 2004-06-20 08:46:00 +00:00
parent a0f34b90af
commit 152695e258
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-06-20 Moritz Bunkus <moritz@bunkus.org>
* mmg: new feature: Suggest a name for a new job based on the
output file name.
* mmg: new feature: Temporarily disaable 'always on top' if the
muxing or the job dialog are visible.

View File

@ -1498,7 +1498,8 @@ mmg_dialog::on_add_to_jobqueue(wxCommandEvent &evt) {
wxYES_NO) != wxYES))
return;
description = wxT("");
description = tc_output->GetValue().AfterLast(wxT('/')).AfterLast(wxT('\\'));
description = description.AfterLast(wxT('/')).BeforeLast(wxT('.'));
ok = false;
do {
description = wxGetTextFromUser(wxT("Please enter a description for the "