From 8c5ee66d7aa6b4f4c7423c1d227a2208f27d6253 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Wed, 8 Nov 2006 16:00:14 +0000 Subject: [PATCH] Bug #359653 --> Don't show the sending unsent messages progress text unless we know we have unsent messages to send. sr=bienvenu --- mailnews/base/src/nsMsgOfflineManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mailnews/base/src/nsMsgOfflineManager.cpp b/mailnews/base/src/nsMsgOfflineManager.cpp index 9d0d75e57ff..1658efaef6e 100644 --- a/mailnews/base/src/nsMsgOfflineManager.cpp +++ b/mailnews/base/src/nsMsgOfflineManager.cpp @@ -206,8 +206,6 @@ nsresult nsMsgOfflineManager::SynchronizeOfflineImapChanges() nsresult nsMsgOfflineManager::SendUnsentMessages() { nsresult rv; - - ShowStatus("sendingUnsent"); nsCOMPtr pMsgSendLater = do_CreateInstance(kMsgSendLaterCID, &rv); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr accountManager = @@ -257,7 +255,8 @@ nsresult nsMsgOfflineManager::SendUnsentMessages() { pMsgSendLater->AddListener(this); pMsgSendLater->SetMsgWindow(m_window); - rv = pMsgSendLater->SendUnsentMessages(identityToUse); + rv = pMsgSendLater->SendUnsentMessages(identityToUse); + ShowStatus("sendingUnsent"); // if we succeeded, return - we'll run the next operation when the // send finishes. Otherwise, advance to the next state. if (NS_SUCCEEDED(rv))