Bug 991394 - actually rename profiles.ini sections when removing profile; r=mfinkle

--HG--
extra : rebase_source : 557a44d699f86d89ee959cb8897e6d0c1c304227
This commit is contained in:
Myk Melez 2014-05-21 08:12:51 -07:00
parent a7ea4ea8da
commit fed5a056a1
3 changed files with 4 additions and 1 deletions

View File

@ -491,8 +491,9 @@ public final class GeckoProfile {
} else {
// this really shouldn't be the case, but handle it anyway
parser.removeSection(mName);
return true;
}
break;
}
parser.write();

View File

@ -169,6 +169,7 @@ public final class INIParser extends INISection {
if (section == null)
return;
section.setName(newName);
mSections.remove(oldName);
mSections.put(newName, section);
}

View File

@ -18,6 +18,7 @@ public class INISection {
// default file to read and write to
private String mName = null;
public String getName() { return mName; }
public void setName(String name) { mName = name; }
// show or hide debug logging
private boolean mDebug = false;