mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991394 - actually rename profiles.ini sections when removing profile; r=mfinkle
--HG-- extra : rebase_source : 557a44d699f86d89ee959cb8897e6d0c1c304227
This commit is contained in:
parent
a7ea4ea8da
commit
fed5a056a1
@ -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();
|
||||
|
@ -169,6 +169,7 @@ public final class INIParser extends INISection {
|
||||
if (section == null)
|
||||
return;
|
||||
|
||||
section.setName(newName);
|
||||
mSections.remove(oldName);
|
||||
mSections.put(newName, section);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user