Bug 360639 Omit virtual folders from offline use selection r=bienvenu sr=mscott

This commit is contained in:
neil%parkwaycc.co.uk 2006-12-07 20:48:50 +00:00
parent e02913ad6c
commit 1d480581d2

View File

@ -1000,6 +1000,12 @@ NS_IMETHODIMP nsMsgDBFolder::GetSupportsOffline(PRBool *aSupportsOffline)
{
NS_ENSURE_ARG_POINTER(aSupportsOffline);
if (mFlags & MSG_FOLDER_FLAG_VIRTUAL)
{
*aSupportsOffline = PR_FALSE;
return NS_OK;
}
nsCOMPtr<nsIMsgIncomingServer> server;
nsresult rv = GetServer(getter_AddRefs(server));
NS_ENSURE_SUCCESS(rv,rv);