mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
fixing 37738, fail to migrate 4.x profile on start
This commit is contained in:
parent
dc7c4b5dd8
commit
c260efdf1d
@ -57,7 +57,7 @@ function RenameProfile()
|
||||
}
|
||||
else {
|
||||
var selected = profileTree.selectedItems[0];
|
||||
if( selected.getAttribute("rowMigrate") == "no" ) {
|
||||
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
|
||||
// migrate if the user wants to
|
||||
var lString = bundle.GetStringFromName("migratebeforerename");
|
||||
lString = lString.replace(/\s*<html:br\/>/g,"\n");
|
||||
@ -85,7 +85,7 @@ function RenameProfile()
|
||||
}
|
||||
}
|
||||
|
||||
var migrate = selected.getAttribute("rowMigrate");
|
||||
var migrate = selected.firstChild.firstChild.getAttribute("rowMigrate");
|
||||
dump("*** oldName = "+ oldName+ ", newName = "+ newName+ ", migrate = "+ migrate+ "\n");
|
||||
try {
|
||||
profile.renameProfile(oldName, newName);
|
||||
@ -122,7 +122,7 @@ function ConfirmDelete()
|
||||
var selected = profileTree.selectedItems[0];
|
||||
var name = selected.getAttribute("rowName");
|
||||
|
||||
if( selected.getAttribute("rowMigrate") == "no" ) {
|
||||
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
|
||||
// auto migrate if the user wants to. THIS IS REALLY REALLY DUMB PLEASE FIX THE BACK END.
|
||||
var lString = bundle.GetStringFromName("migratebeforedelete");
|
||||
lString = lString.replace(/\s*<html:br\/>/g,"\n");
|
||||
|
@ -139,7 +139,7 @@ function onStart()
|
||||
var selected = profileTree.selectedItems[0];
|
||||
|
||||
var profilename = selected.getAttribute("profile_name");
|
||||
if( selected.getAttribute("rowMigrate") == "no" ) {
|
||||
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
|
||||
var lString = bundle.GetStringFromName("migratebeforestart");
|
||||
lString = lString.replace(/\s*<html:br\/>/g,"\n");
|
||||
if( confirm( lString ) )
|
||||
|
Loading…
Reference in New Issue
Block a user