Update of /cvsroot/mahogany/M/src/adb
In directory sc8-pr-cvs1:/tmp/cvs-serv4252/src/adb
Modified Files:
AdbDialogs.cpp AdbFrame.cpp
Log Message:
corrections after Profile paths change so that settings are again written to the
correct place
Index: AdbDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/AdbDialogs.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -u -2 -r1.24 -r1.25
--- AdbDialogs.cpp 22 Jul 2003 22:01:39 -0000 1.24
+++ AdbDialogs.cpp 31 Aug 2003 13:04:04 -0000 1.25
@@ -317,7 +317,6 @@
// final steps
- String file = mApplication->GetProfile()->readEntry(GetFileProfilePath(),
- "");
- if ( !!file )
+ String file = wxConfigBase::Get()->Read(GetFileProfilePath(), "");
+ if ( !file.empty() )
{
m_text->SetValue(file);
@@ -394,6 +393,5 @@
{
// save the file entry zone value in the profile
- mApplication->GetProfile()->writeEntry(GetFileProfilePath(),
- m_text->GetValue());
+ wxConfigBase::Get()->Write(GetFileProfilePath(), m_text->GetValue());
}
Index: AdbFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/AdbFrame.cpp,v
retrieving revision 1.109
retrieving revision 1.110
diff -b -u -2 -r1.109 -r1.110
--- AdbFrame.cpp 22 Aug 2003 09:53:42 -0000 1.109
+++ AdbFrame.cpp 31 Aug 2003 13:04:04 -0000 1.110
@@ -1201,5 +1201,7 @@
// shows up
- wxConfigBase *conf = mApplication->GetProfile()->GetConfig();
+ wxConfigBase *conf = wxConfigBase::Get();
+ if ( conf )
+ {
conf->SetPath(GetAdbEditorConfigPath());
@@ -1214,4 +1216,5 @@
SaveArray(conf, providers, aszConfigNames[ConfigName_AddressBookProviders]);
}
+ }
}
@@ -1367,5 +1370,7 @@
RestoreArray(conf, var, aszConfigNames[i])
- wxConfigBase *conf = mApplication->GetProfile()->GetConfig();
+ wxConfigBase *conf = wxConfigBase::Get();
+ if ( conf )
+ {
conf->SetPath(GetAdbEditorConfigPath());
@@ -1380,4 +1385,5 @@
TRANSFER_ARRAY(m_astrProviders, ConfigName_AddressBookProviders);
TRANSFER_ARRAY(m_astrBranches, ConfigName_ExpandedBranches);
+ }
// keep your namespace clean
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates