From 29a840b4ab1a51c612042f8071294bbf78d8190d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 30 Oct 2011 21:21:36 +0100 Subject: [PATCH] Don't create a "jobs" folder in the current directory --- src/mmg/mmg_dialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mmg/mmg_dialog.cpp b/src/mmg/mmg_dialog.cpp index 37dfcb8ad..b16f29878 100644 --- a/src/mmg/mmg_dialog.cpp +++ b/src/mmg/mmg_dialog.cpp @@ -1410,8 +1410,9 @@ mmg_dialog::on_add_to_jobqueue(wxCommandEvent &evt) { } } while (!ok); - if (!wxDirExists(wxT("jobs"))) - wxMkdir(wxT("jobs")); + wxString jobs_folder = app->get_jobs_folder(); + if (!wxDirExists(jobs_folder)) + wxMkdir(jobs_folder); last_job_id++; if (last_job_id > 2000000000) @@ -1425,7 +1426,7 @@ mmg_dialog::on_add_to_jobqueue(wxCommandEvent &evt) { job.log = new wxString(); jobs.push_back(job); - save(wxString::Format(wxT("%s/%d.mmg"), app->get_jobs_folder().c_str(), job.id)); + save(wxString::Format(wxT("%s/%d.mmg"), jobs_folder.c_str(), job.id)); save_job_queue();