зеркало из https://github.com/mozilla/gecko-dev.git
Bug 120018 - Pressing ESC in Delete Profile dialog deletes profile.
r=rjc@netscape.com/sr=alecf@netscape.com/a=blizzard@mozilla.org
This commit is contained in:
Родитель
46f0076965
Коммит
98b737b6ac
|
@ -166,13 +166,14 @@ function ConfirmDelete()
|
|||
var buttonPressed = {value:0}
|
||||
promptService.confirmEx(window, dialogTitle, dialogText,
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) +
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) +
|
||||
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_2),
|
||||
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) +
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2),
|
||||
gProfileManagerBundle.getString("dontDeleteFiles"),
|
||||
null,
|
||||
gProfileManagerBundle.getString("deleteFiles"),
|
||||
null, null, {value:0}, buttonPressed);
|
||||
if (buttonPressed.value != 2)
|
||||
DeleteProfile(buttonPressed.value == 1);
|
||||
null, {value:0}, buttonPressed);
|
||||
if (buttonPressed.value != 1)
|
||||
DeleteProfile(buttonPressed.value == 2);
|
||||
}
|
||||
else
|
||||
DeleteProfile(false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче