fix saving of virtual folders when tbird launched with mailto link, sr=mscott, a=asa, 292229

This commit is contained in:
bienvenu%nventure.com 2005-06-15 23:54:37 +00:00
Родитель e4a343f08f
Коммит db7a5f2cc5
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -163,7 +163,8 @@ nsMsgAccountManager::nsMsgAccountManager() :
m_haveShutdown(PR_FALSE),
m_shutdownInProgress(PR_FALSE),
m_userAuthenticated(PR_FALSE),
m_loadingVirtualFolders(PR_FALSE)
m_loadingVirtualFolders(PR_FALSE),
m_virtualFoldersLoaded(PR_FALSE)
{
}
@ -2973,7 +2974,7 @@ NS_IMETHODIMP nsMsgAccountManager::LoadVirtualFolders()
}
m_loadingVirtualFolders = PR_FALSE;
m_virtualFoldersLoaded = PR_TRUE;
return rv;
}
@ -2981,7 +2982,8 @@ NS_IMETHODIMP nsMsgAccountManager::LoadVirtualFolders()
NS_IMETHODIMP nsMsgAccountManager::SaveVirtualFolders()
{
if (!m_virtualFoldersLoaded)
return NS_OK;
nsCOMPtr<nsISupportsArray> allServers;
nsresult rv = GetAllServers(getter_AddRefs(allServers));
nsCOMPtr <nsILocalFile> file;

Просмотреть файл

@ -102,6 +102,7 @@ private:
PRBool m_shutdownInProgress;
PRBool m_userAuthenticated;
PRBool m_loadingVirtualFolders;
PRBool m_virtualFoldersLoaded;
/* we call FindServer() a lot. so cache the last server found */
nsCOMPtr <nsIMsgIncomingServer> m_lastFindServerResult;