From 63f4d5d76376f99dca75846a1571c00abee90ba8 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Wed, 6 Feb 2002 03:59:01 +0000 Subject: [PATCH] r=naving, sr=sspitzer 123427 remove offline store when news folder unsubscribed --- mailnews/news/src/nsNewsFolder.cpp | 4 +++- mailnews/news/src/nsNewsFolder.h | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mailnews/news/src/nsNewsFolder.cpp b/mailnews/news/src/nsNewsFolder.cpp index 6aa927af7655..f691687fd3d1 100644 --- a/mailnews/news/src/nsNewsFolder.cpp +++ b/mailnews/news/src/nsNewsFolder.cpp @@ -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); diff --git a/mailnews/news/src/nsNewsFolder.h b/mailnews/news/src/nsNewsFolder.h index 0653b7bce338..3b662f3fc51f 100644 --- a/mailnews/news/src/nsNewsFolder.h +++ b/mailnews/news/src/nsNewsFolder.h @@ -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;