Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2753/src/classes
Modified Files:
ConfigSourcesAll.cpp
Log Message:
fixed bug in wxConfigMultiplexer::HasEntry/Group() which prevented persistent
text entries from working
Index: ConfigSourcesAll.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/ConfigSourcesAll.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -u -2 -r1.9 -r1.10
--- ConfigSourcesAll.cpp 9 Jul 2005 20:48:15 -0000 1.9
+++ ConfigSourcesAll.cpp 11 Jul 2005 22:44:44 -0000 1.10
@@ -113,10 +113,10 @@
virtual bool HasGroup(const wxString& name) const
{
- return m_configSources.HasGroup(name);
+ return m_configSources.HasGroup(MakeFullPath(name));
}
virtual bool HasEntry(const wxString& name) const
{
- return m_configSources.HasEntry(name);
+ return m_configSources.HasEntry(MakeFullPath(name));
}
@@ -172,9 +172,5 @@
virtual bool DeleteGroup(const wxString& key)
{
- wxString path;
- if ( *key.c_str() == _T('/') )
- path = key;
- else
- path << m_path << _T('/') << key;
+ const wxString path = MakeFullPath(key);
bool foundAny = false;
@@ -204,4 +200,15 @@
protected:
+ wxString MakeFullPath(const wxString& key) const
+ {
+ wxString path;
+ if ( *key.c_str() == _T('/') )
+ path = key;
+ else
+ path << m_path << _T('/') << key;
+
+ return path;
+ }
+
bool DoRead(LookupData& ld) const
{
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates