mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 360639 Omit virtual folders from offline use selection r=bienvenu sr=mscott
This commit is contained in:
parent
e02913ad6c
commit
1d480581d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user