Delete the job file itself along with the job data.

This commit is contained in:
Moritz Bunkus 2004-06-13 10:08:28 +00:00
parent 3d24c4e550
commit cbdd217586
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-06-13 Moritz Bunkus <moritz@bunkus.org>
* mmg: new feature: The action 'delete job' in the job manager
will also delete the file in the 'jobs' subdirectory.
2004-06-12 Moritz Bunkus <moritz@bunkus.org>
* mmg: new feature: Added an option to make mmg stay always on

View File

@ -560,6 +560,7 @@ job_dialog::on_delete(wxCommandEvent &evt) {
i = 0;
while (i < jobs.size()) {
if (lv_jobs->IsSelected(i)) {
wxRemoveFile(wxString::Format(wxT("jobs/%d.mmg"), dit->id));
jobs.erase(dit);
lv_jobs->DeleteItem(i);
} else {