Fix bustage from bug 833399 transplant a=bustage-fix
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 19 Jun 2013 12:42:14 +0200
changeset 13675 8d4f8e1b350234b27efca537a2184adfa3028201
parent 13674 cec6ac1b39f6e7e7f0d8b3c6c215c2f509ce073e
child 13676 075d9a47130bba4a2114433aee238a221c004e67
child 13678 7cd4a6fe2155dd5ea988d300b3d533be83a9303c
child 13679 e62fec0f40d87db747869c4a3a5c3295e1055a46
push id57
push userbugzilla@standard8.plus.com
push dateWed, 19 Jun 2013 10:42:26 +0000
reviewersbustage-fix
bugs833399
Fix bustage from bug 833399 transplant a=bustage-fix
mailnews/imap/src/nsImapUndoTxn.cpp
--- a/mailnews/imap/src/nsImapUndoTxn.cpp
+++ b/mailnews/imap/src/nsImapUndoTxn.cpp
@@ -543,17 +543,17 @@ NS_IMETHODIMP nsImapOfflineTxn::UndoTran
   switch (m_opType)
   {
     case nsIMsgOfflineImapOperation::kMsgMoved:
     case nsIMsgOfflineImapOperation::kMsgCopy:
     case nsIMsgOfflineImapOperation::kAddedHeader:
     case nsIMsgOfflineImapOperation::kFlagsChanged:
     case nsIMsgOfflineImapOperation::kDeletedMsg:
     {
-      if (m_srcHdrs.IsEmpty())
+      if (m_srcHdrs.Count() == 0)
       {
         NS_ASSERTION(false, "No msg header to apply undo.");
         break;
       }
       nsCOMPtr<nsIMsgDBHdr> firstHdr = m_srcHdrs[0];
       nsMsgKey hdrKey;
       firstHdr->GetMessageKey(&hdrKey);
       rv = srcDB->GetOfflineOpForKey(hdrKey, false, getter_AddRefs(op));