mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
38d1652ffa
commit
71cd5bcecc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user