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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now