Francesco Posted September 11, 2011 Posted September 11, 2011 CauseA bug in SaveConfig tampers with the variable used to populate the Commands grid for the current application entry, causing any further selection on the grid to populate the wrong command in the command editbox, until a different application is selected.FixReplace the following line in the HideWriteRegKey2 function of configwizard.js if (configList[i].cmds.length>0) { Commands.splice(0,Commands.length); Commands=configList[i].cmds.split("','"); for (var j=0; j<Commands.length; j++) { Commands[j]=Commands[j].replace(/\\/g,"\\\\").replace(/'/g,"\\'"); // For apostrophes Commands[j]=Commands[j].replace(/,/gi,"%comma%"); } tf.WriteLine("cmds[pn]=['" + Commands.join("','") + "'];"); } with if (configList[i].cmds.length>0) { CurCommands=configList[i].cmds.split("','"); for (var j=0; j<CurCommands.length; j++) { CurCommands[j]=CurCommands[j].replace(/\\/g,"\\\\").replace(/'/g,"\\'"); // For apostrophes CurCommands[j]=CurCommands[j].replace(/,/gi,"%comma%"); } tf.WriteLine("cmds[pn]=['" + CurCommands.join("','") + "'];"); }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now