Update of /cvsroot/mahogany/M/src/adb
In directory usw-pr-cvs1:/tmp/cvs-serv11502/src/adb

Modified Files:
        ProvFC.cpp AdbEntry.cpp 
Log Message:
handle the case when only extra emails have been changed in the ADB editor properly 
(added an extra dirty flag just for them)

Index: ProvFC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/ProvFC.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -b -u -2 -r1.34 -r1.35
--- ProvFC.cpp  28 Apr 2002 23:59:32 -0000      1.34
+++ ProvFC.cpp  27 Jun 2002 09:46:18 -0000      1.35
@@ -452,4 +452,9 @@
   nFieldMax++; // compensate for the last '--'
 
+  if ( nFieldMax <= AdbField_OtherEMails && m_bEMailDirty ) {
+     // otherwise we wouldn't save the emails at all even though we should
+     nFieldMax = AdbField_OtherEMails + 1;
+  }
+
   wxString strValue;
   for ( size_t nField = 1; nField < nFieldMax; nField++ ) {

Index: AdbEntry.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/AdbEntry.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -u -2 -r1.9 -r1.10
--- AdbEntry.cpp        29 Apr 2002 00:00:53 -0000      1.9
+++ AdbEntry.cpp        27 Jun 2002 09:46:18 -0000      1.10
@@ -107,9 +107,19 @@
 }
 
+void AdbEntryStoredInMemory::AddEMail(const String& strEMail)
+{
+  m_astrEmails.Add(strEMail);
+
+  m_bDirty =
+  m_bEMailDirty = TRUE;
+}
+
 void AdbEntryStoredInMemory::ClearExtraEMails()
 {
   if ( !m_astrEmails.IsEmpty() ) {
     m_astrEmails.Empty();
-    m_bDirty = TRUE;
+
+    m_bDirty =
+    m_bEMailDirty = TRUE;
   }
   //else: don't set dirty flag if it didn't change anything



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to