Find the MRU repository location correctly in the configtool

John Dallaway jld@ecoscentric.com
Fri Mar 7 12:57:00 GMT 2003


This patch allows the configtool to retrieve the most recently used eCos
repository from the correct save file under Linux. Approval requested for
2.0 branch.

John Dallaway
eCosCentric Limited

--cut here--

--- configtool.old/ChangeLog	2003-03-03 12:17:15.000000000 +0000
+++ configtool/ChangeLog	2003-03-07 12:51:42.000000000 +0000
@@ -1,5 +1,10 @@
+2003-03-07  John Dallaway  <jld@ecoscentric.com>
+
+	* standalone/wxwin/appsettings.cpp: Look in the right place for the
+	eCos repository location under Linux.
+
 2003-02-25  John Dallaway  <jld@ecoscentric.com>

 	* standalone/wxwin/makefile.gnu: No need to specify -L /usr/lib for
 	Linux builds.

--- configtool.old/standalone/wxwin/appsettings.cpp	2003-02-13 16:23:38.000000000 +0000
+++ configtool/standalone/wxwin/appsettings.cpp	2003-03-07 12:21:39.000000000 +0000
@@ -531,13 +532,13 @@
         }
     }

     // Load current repository from eCos Configuration Tool/Paths/RepositoryDir
     {
-        wxConfig eCosConfig(wxT("eCos Configuration Tool"), wxEmptyString, wxEmptyString, wxEmptyString, wxCONFIG_USE_GLOBAL_FILE|wxCONFIG_USE_LOCAL_FILE);
+        wxConfig eCosConfig(wxGetApp().GetSettings().GetConfigAppName(), wxEmptyString, wxEmptyString, wxEmptyString, wxCONFIG_USE_GLOBAL_FILE|wxCONFIG_USE_LOCAL_FILE);
         wxConfigPathChanger path(& config, wxT("/Repository/"));
         //if (!eCosConfig.Read(wxT("Folder"), & m_strRepository))
         if (!eCosConfig.Read(wxT("/Paths/RepositoryDir"), & m_strRepository))
         {
 #ifdef __WXMSW__
             // If we can't find the current folder, look for clues in the registry.



More information about the Ecos-patches mailing list