mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237516 - about:profiles should deal with nsIProfileService throwing exceptions, r=ehsan
This commit is contained in:
parent
3dfb446cb7
commit
b0be06bcb3
@ -299,8 +299,15 @@ function removeProfile(profile) {
|
||||
|
||||
// If we are deleting the selected or the default profile we must choose a
|
||||
// different one.
|
||||
let isSelected = ProfileService.selectedProfile == profile;
|
||||
let isDefault = ProfileService.defaultProfile == profile;
|
||||
let isSelected = false;
|
||||
try {
|
||||
isSelected = ProfileService.selectedProfile == profile;
|
||||
} catch(e) {}
|
||||
|
||||
let isDefault = false;
|
||||
try {
|
||||
isDefault = ProfileService.defaultProfile == profile;
|
||||
} catch(e) {}
|
||||
|
||||
if (isSelected || isDefault) {
|
||||
let itr = ProfileService.profiles;
|
||||
|
Loading…
Reference in New Issue
Block a user