зеркало из https://github.com/mozilla/gecko-dev.git
fix 264544, saving a brand new template and sending it delete it from templates folder, sr=mscott
This commit is contained in:
Родитель
34240f13ec
Коммит
e9274e9dd6
|
@ -3188,12 +3188,16 @@ nsMsgComposeSendListener::RemoveCurrentDraftMessage(nsIMsgCompose *compObj, PRBo
|
|||
// Reset draft (uid) url with the new uid.
|
||||
if (msgFolder && newUid != nsMsgKey_None)
|
||||
{
|
||||
PRUint32 folderFlags;
|
||||
msgFolder->GetFlags(&folderFlags);
|
||||
if (folderFlags & MSG_FOLDER_FLAG_DRAFTS)
|
||||
{
|
||||
rv = msgFolder->GenerateMessageURI(newUid, getter_Copies(newDraftIdURL));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
compFields->SetDraftId(newDraftIdURL.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче