Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2120/src/gui
Modified Files:
wxHeadersDialogs.cpp
Log Message:
allow unsetting custom headers set for parent folder
Index: wxHeadersDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxHeadersDialogs.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -b -u -2 -r1.50 -r1.51
--- wxHeadersDialogs.cpp 30 Jun 2005 14:23:26 -0000 1.50
+++ wxHeadersDialogs.cpp 11 Jul 2005 22:43:24 -0000 1.51
@@ -1055,9 +1055,8 @@
for ( size_t type = 0; type < CustomHeader_Max; type++ )
{
- if ( !headersFor[type].IsEmpty() )
- {
- m_profile->writeEntry(pathBase + gs_customHeaderSubgroups[type],
- strutil_flatten_array(headersFor[type]));
- }
+ const String name = pathBase + gs_customHeaderSubgroups[type];
+ const String value = strutil_flatten_array(headersFor[type]);
+ if ( m_profile->readEntry(name, _T("")) != value )
+ m_profile->writeEntry(name, value);
}
-------------------------------------------------------
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