From 95ff4487c3449209b331ae5c7cd50210f18af306 Mon Sep 17 00:00:00 2001 From: "asqueella@gmail.com" Date: Sun, 2 Sep 2007 09:35:37 -0700 Subject: [PATCH] Bug 393814 - deleting a profile in profile manager should not leave no profile selected p=Ray Kiddy r=bsmedberg --- toolkit/profile/content/profileSelection.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/profile/content/profileSelection.js b/toolkit/profile/content/profileSelection.js index 85b9eb9483d..3c23133fcfd 100644 --- a/toolkit/profile/content/profileSelection.js +++ b/toolkit/profile/content/profileSelection.js @@ -274,7 +274,10 @@ function ConfirmDelete() } selectedProfile.remove(deleteFiles); - selectedItem.parentNode.removeChild(selectedItem); + profileList.removeChild(selectedItem); + if (profileList.firstChild != undefined) { + profileList.selectItem(profileList.firstChild); + } return true; }