зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
745304556e
Коммит
8c5ee66d7a
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче