Followup patch to bug 279497: Selected profile in profile manager does not always appear focused/highlighted, patch by moz_bug_r_a4@yahoo.com, r=mconnor

git-svn-id: svn://10.0.0.236/trunk@180471 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2005-09-17 18:59:20 +00:00
parent b9ee03e008
commit 7f1d8b3d9c

View File

@ -83,7 +83,10 @@ function startup()
listitem.profile = profile;
try {
if (profile === gProfileService.selectedProfile) {
setTimeout(function f(a) { profilesElement.selectedItem = a; }, 0, listitem);
setTimeout(function(a) {
profilesElement.ensureElementIsVisible(a);
profilesElement.selectItem(a);
}, 0, listitem);
}
}
catch(e) { }