Bug #359653 --> Don't show the sending unsent messages progress text unless we know we have unsent messages to send.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2006-11-08 16:00:14 +00:00
Родитель 745304556e
Коммит 8c5ee66d7a
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -206,8 +206,6 @@ nsresult nsMsgOfflineManager::SynchronizeOfflineImapChanges()
nsresult nsMsgOfflineManager::SendUnsentMessages()
{
nsresult rv;
ShowStatus("sendingUnsent");
nsCOMPtr<nsIMsgSendLater> pMsgSendLater = do_CreateInstance(kMsgSendLaterCID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIMsgAccountManager> 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))