зеркало из https://github.com/mozilla/gecko-dev.git
Bug 293679 Hide Compact This Folder for virtual folders r+sr=bienvenu a=asa
This commit is contained in:
Родитель
af1ea33dd6
Коммит
4e416a7cd9
|
@ -2728,7 +2728,9 @@ nsMsgDBFolder::GetCanCompact(PRBool *aResult)
|
|||
PRBool isServer = PR_FALSE;
|
||||
nsresult rv = GetIsServer(&isServer);
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
*aResult = !isServer; //servers cannot be compacted --> 4.x
|
||||
// servers cannot be compacted --> 4.x
|
||||
// virtual search folders cannot be compacted
|
||||
*aResult = !isServer && !(mFlags & MSG_FOLDER_FLAG_VIRTUAL);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче