I'm using Code::Blocks Version 1.0 revision 1595 (gcc 3.4.4 Linux/unicode, build: Dec 26 2005 17:16:07).
In the function FilesGroupsAndMasks::Save the each file-group and its mask are stored in that way:
FileGroups* fg = m_Groups[i];
wxString key;
key << _("/file_groups/group") << i << _T("/") << _T("name");
conf->Write(key, fg->groupName);
key.Clear();
key << _("/file_groups/group") << i << _T("/") << _T("mask");
conf->Write(key, GetStringFromArray(fg->fileMasks, _T(";")));
Although this looks correct it doesn't work (at least for me). The keys look like this for
all entries:
/file_groups/group/name
/file_groups/group/mask
You see, the indices are missing although they are pushed into the stream. I have no idea why this happens. I don't think that my wxGTK-installation is broken because similar code works well in other projects and probably in Code::Blocks, too. Is anyone able to re-produce this problem?
Anyway, the result of this problem is that only the last file mask is stored in the config file and thus after re-loading Code::Blocks all files are either added to the group "Ressources" (which seems to be the group with the highest index) or to the group "Others" if the mask for ressources doesn't apply to them.