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

Modified Files:
        AdbEntry.h 
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: AdbEntry.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/AdbEntry.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -b -u -2 -r1.23 -r1.24
--- AdbEntry.h  29 Apr 2002 00:00:05 -0000      1.23
+++ AdbEntry.h  27 Jun 2002 09:46:18 -0000      1.24
@@ -240,5 +240,5 @@
 {
 public:
-  AdbEntryStoredInMemory() { m_bDirty = FALSE; }
+  AdbEntryStoredInMemory() { m_bDirty = m_bEMailDirty = FALSE; }
 
   // we can implement some of the base class functions in the manner independent
@@ -246,6 +246,5 @@
   virtual void GetFieldInternal(size_t n, String *pstr) const;
   virtual void SetField(size_t n, const String& strValue);
-  virtual void AddEMail(const String& strEMail)
-    { m_astrEmails.Add(strEMail); m_bDirty = TRUE; }
+  virtual void AddEMail(const String& strEMail);
   virtual void ClearExtraEMails();
   virtual size_t GetEMailCount() const { return m_astrEmails.Count(); }
@@ -259,5 +258,6 @@
   wxArrayString m_astrEmails; // all email addresses except for the first one
 
-  bool m_bDirty;              // dirty flag
+  bool m_bDirty:1;            // global dirty flag
+  bool m_bEMailDirty:1;       // was m_astrEmails modified?
 };
 



-------------------------------------------------------
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