wxConfigBase::HasGroup() does not seem to deal with absolute paths on 2.5.x on Windows.

This commit is contained in:
Moritz Bunkus 2005-02-26 23:22:02 +00:00
parent d582ecc89e
commit 512c4ef2d2
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-02-27 Moritz Bunkus <moritz@bunkus.org>
* 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 <moritz@bunkus.org> 2005-02-26 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: The job status in the job runner dialog was broken * mmg: bug fix: The job status in the job runner dialog was broken

View File

@ -1742,12 +1742,15 @@ mmg_dialog::load_job_queue() {
if (!cfg->Read(wxT("number_of_jobs"), &num)) if (!cfg->Read(wxT("number_of_jobs"), &num))
return; return;
for (i = 0; i < jobs.size(); i++) for (i = 0; i < jobs.size(); i++) {
delete jobs[i].description; delete jobs[i].description;
delete jobs[i].log;
}
jobs.clear(); jobs.clear();
for (i = 0; i < num; i++) { 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)) if (!cfg->HasGroup(s))
continue; continue;
cfg->SetPath(s); cfg->SetPath(s);