This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Find the MRU repository location correctly in the configtool
- From: John Dallaway <jld at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 7 Mar 2003 12:59:15 +0000
- Subject: Find the MRU repository location correctly in the configtool
- Organization: eCosCentric Limited
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 at ecoscentric dot com>
+
+ * standalone/wxwin/appsettings.cpp: Look in the right place for the
+ eCos repository location under Linux.
+
2003-02-25 John Dallaway <jld at ecoscentric dot 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.