mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
fix saving of virtual folders when tbird launched with mailto link, sr=mscott, a=asa, 292229
This commit is contained in:
parent
e4a343f08f
commit
db7a5f2cc5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user