mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
fix for blocker #96282. use SelectFolder() to select the inbox on the default account
on startup. r=mscott,sr=bienvenu
This commit is contained in:
parent
c7720287c0
commit
286201ce5a
@ -468,10 +468,7 @@ function PerformExpandForAllOpenServers()
|
||||
var server = msgFolder.server;
|
||||
// Don't do this for imap servers. See bug #41943
|
||||
if (server.type != "imap")
|
||||
{
|
||||
dump("perform expand #1" + msgFolder.URI + "\n");
|
||||
server.performExpand(msgWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -528,15 +525,8 @@ function loadStartFolder(initialUri)
|
||||
}
|
||||
}
|
||||
|
||||
var startFolderIndex = GetFolderIndex(folderOutliner, startFolderResource);
|
||||
//if it's not here we will have to make sure it's open.
|
||||
if(startFolderIndex < 0 && startFolderResource && isLoginAtStartUpEnabled)
|
||||
{
|
||||
// Opens the twisty for the default account
|
||||
OpenTwistyForServer(folderOutliner, defaultServer);
|
||||
startFolderIndex = GetFolderIndex(folderOutliner, startFolderResource);
|
||||
}
|
||||
ChangeSelection(folderOutliner, startFolderIndex);
|
||||
var startFolder = startFolderResource.QueryInterface(Components.interfaces.nsIFolder);
|
||||
SelectFolder(startFolder.URI);
|
||||
|
||||
// only do this on startup, when we pass in null
|
||||
if (!initialUri && isLoginAtStartUpEnabled)
|
||||
|
Loading…
Reference in New Issue
Block a user