зеркало из https://github.com/mozilla/pjs.git
#67192, nsMsgAccountManagerDataSource::supportsFilters should use the fairly new canHaveFilters bit to determine whether a nsMsgIncomingServer supports filters. r=timeless, sr=bienvenu
This commit is contained in:
Родитель
50f00fbc78
Коммит
0a7f32e144
|
@ -826,15 +826,10 @@ nsMsgAccountManagerDataSource::isDefaultServer(nsIMsgIncomingServer *aServer)
|
|||
PRBool
|
||||
nsMsgAccountManagerDataSource::supportsFilters(nsIMsgIncomingServer *aServer)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIMsgFilterList> filterList;
|
||||
rv = aServer->GetFilterList(getter_AddRefs(filterList));
|
||||
if (NS_SUCCEEDED(rv) && filterList)
|
||||
return PR_TRUE;
|
||||
|
||||
return PR_FALSE;
|
||||
PRBool supportsFilters;
|
||||
aServer->GetCanHaveFilters(&supportsFilters);
|
||||
|
||||
return supportsFilters;
|
||||
}
|
||||
|
||||
PRBool
|
||||
|
|
Загрузка…
Ссылка в новой задаче