Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27698/src/modules
Modified Files:
BareBonesEditor.cpp
Log Message:
make the composer dirty when an attachment is added
Index: BareBonesEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/BareBonesEditor.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -b -u -2 -r1.33 -r1.34
--- BareBonesEditor.cpp 2 Oct 2004 16:44:05 -0000 1.33
+++ BareBonesEditor.cpp 7 Oct 2004 20:57:47 -0000 1.34
@@ -158,4 +158,6 @@
int m_getNextAttachement;
+
+ bool m_hasNewAttachments;
};
@@ -907,4 +909,6 @@
m_getNextAttachement = -1;
+
+ m_hasNewAttachments = false;
}
@@ -933,4 +937,5 @@
m_attachments->DeleteAllItems();
+ m_hasNewAttachments = false;
}
@@ -1000,5 +1005,5 @@
bool BareBonesEditor::IsModified() const
{
- return m_textControl->IsModified();
+ return m_textControl->IsModified() || m_hasNewAttachments;
}
@@ -1046,4 +1051,5 @@
{
m_textControl->DiscardEdits();
+ m_hasNewAttachments = false;
}
@@ -1164,4 +1170,6 @@
m_attachments->InsertItem(item);
+
+ m_hasNewAttachments = true;
}
@@ -1191,8 +1199,6 @@
m_textControl->SetValue(text);
-#if wxCHECK_VERSION(2, 5, 1)
// we want our IsModified() to return true when new text is added
m_textControl->MarkDirty();
-#endif
break;
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates