Bug #Bug #346747 --> hook up rename and delete to folder views. Clear the favorite flag when deleting a local folder to trash. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2006-08-01 00:56:43 +00:00
parent 38d1652ffa
commit 71cd5bcecc

View File

@ -1965,6 +1965,9 @@ nsMsgLocalMailFolder::CopyFolderLocal(nsIMsgFolder *srcFolder,
ConfirmFolderDeletion(msgWindow, &okToDelete);
if (!okToDelete)
return NS_MSG_ERROR_COPY_FOLDER_ABORTED;
// if we are moving a favorite folder to trash, we should clear the favorites flag
// so it gets removed from the view.
srcFolder->ClearFlag(MSG_FOLDER_FLAG_FAVORITE);
}
PRBool match = PR_FALSE;