diff --git a/ChangeLog b/ChangeLog index 07c59bd26..8f726e65f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-27 Moritz Bunkus + + * mmg: bug fix: The job queue was not loaded on startup on Windows + Unicode builds (another wxWidgets 2.5.3 problem). + 2005-02-26 Moritz Bunkus * mmg: bug fix: The job status in the job runner dialog was broken diff --git a/src/mmg/mmg.cpp b/src/mmg/mmg.cpp index cb56c331b..1d5906755 100644 --- a/src/mmg/mmg.cpp +++ b/src/mmg/mmg.cpp @@ -1742,12 +1742,15 @@ mmg_dialog::load_job_queue() { if (!cfg->Read(wxT("number_of_jobs"), &num)) return; - for (i = 0; i < jobs.size(); i++) + for (i = 0; i < jobs.size(); i++) { delete jobs[i].description; + delete jobs[i].log; + } jobs.clear(); for (i = 0; i < num; i++) { - s.Printf(wxT("/jobs/%u"), i); + cfg->SetPath(wxT("/jobs")); + s.Printf(wxT("%u"), i); if (!cfg->HasGroup(s)) continue; cfg->SetPath(s);