mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 709589 - Some engine manager cleanup found by SeaMonkey reviews - engine.name, r=gavin
--HG-- extra : transplant_source : 3%DDX%AB%B3I%CAbM%3D%088x%C1Mv%D4%A9%2C%9A
This commit is contained in:
parent
8d531a8d9b
commit
9839fc700d
@ -153,6 +153,7 @@ var gEngineManagerDialog = {
|
||||
while (Services.prompt.prompt(window, title, msg, alias, null, {})) {
|
||||
var bduplicate = false;
|
||||
var eduplicate = false;
|
||||
var dupName = "";
|
||||
|
||||
if (alias.value != "") {
|
||||
try {
|
||||
@ -168,6 +169,7 @@ var gEngineManagerDialog = {
|
||||
if (engine.alias == alias.value &&
|
||||
engine.name != selectedEngine.name) {
|
||||
eduplicate = true;
|
||||
dupName = engine.name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -177,8 +179,7 @@ var gEngineManagerDialog = {
|
||||
if (eduplicate || bduplicate) {
|
||||
var dtitle = strings.getString("duplicateTitle");
|
||||
var bmsg = strings.getString("duplicateBookmarkMsg");
|
||||
var emsg = strings.getFormattedString("duplicateEngineMsg",
|
||||
[engine.name]);
|
||||
var emsg = strings.getFormattedString("duplicateEngineMsg", [dupName]);
|
||||
|
||||
Services.prompt.alert(window, dtitle, eduplicate ? emsg : bmsg);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user