mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
r=naving, sr=sspitzer 123427 remove offline store when news folder unsubscribed
This commit is contained in:
parent
037d0a9b40
commit
63f4d5d763
@ -129,7 +129,6 @@ nsMsgNewsFolder::nsMsgNewsFolder(void) : nsMsgLineBuffer(nsnull, PR_FALSE),
|
||||
SetLookingForCRLF(PR_FALSE);
|
||||
}
|
||||
|
||||
mMessages = nsnull;
|
||||
// NS_INIT_REFCNT(); done by superclass
|
||||
}
|
||||
|
||||
@ -611,6 +610,9 @@ NS_IMETHODIMP nsMsgNewsFolder::Delete()
|
||||
rv = pathSpec->GetFileSpec(&path);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// delete local store, if it exists
|
||||
if (path.Exists())
|
||||
path.Delete(PR_FALSE);
|
||||
// Remove summary file.
|
||||
nsNewsSummarySpec summarySpec(path);
|
||||
summarySpec.Delete(PR_FALSE);
|
||||
|
@ -141,9 +141,8 @@ protected:
|
||||
|
||||
protected:
|
||||
PRUint32 mExpungedBytes;
|
||||
PRBool mGettingNews;
|
||||
PRBool mInitialized;
|
||||
nsISupportsArray *mMessages;
|
||||
PRBool mGettingNews;
|
||||
PRBool mInitialized;
|
||||
nsCString mOptionLines;
|
||||
nsCString mUnsubscribedNewsgroupLines;
|
||||
PRBool m_downloadMessageForOfflineUse;
|
||||
|
Loading…
Reference in New Issue
Block a user