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; }