From 512c4ef2d226a2ff4bee25ad22167bd94390b5b8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 26 Feb 2005 23:22:02 +0000 Subject: [PATCH] wxConfigBase::HasGroup() does not seem to deal with absolute paths on 2.5.x on Windows. --- ChangeLog | 5 +++++ src/mmg/mmg.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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);