Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30070/src/classes

Modified Files:
        ConfigSource.cpp 
Log Message:
fixed secondary config sources creation

Index: ConfigSource.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/ConfigSource.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -u -2 -r1.14 -r1.15
--- ConfigSource.cpp    9 Jul 2004 13:16:46 -0000       1.14
+++ ConfigSource.cpp    4 Jul 2005 13:58:38 -0000       1.15
@@ -118,6 +118,9 @@
 {
    // get the type of config source to create
+   String path(name);
+   path << _T('/') << GetOptionName(MP_CONFIG_SOURCE_TYPE);
+
    String type;
-   if ( !config.Read(GetOptionName(MP_CONFIG_SOURCE_TYPE), &type) )
+   if ( !config.Read(path, &type) )
    {
       wxLogError(_("Invalid config source \"%s\" without type."), 
name.c_str());
@@ -754,5 +757,5 @@
 {
    String filename;
-   if ( !config.Read(_T(""), &filename) )
+   if ( !config.Read(name + _T("/FileName"), &filename) )
    {
       wxLogError(_("No filename for local config source \"%s\"."),



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to