|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Sat Jan 10, 2009 7:50 pm
[237] Problem encountered renaming a variable. |
If one attempts to rename a variable to an existing name, a dialog box appears giving one 3 choices: Rename to a new name, delete the variable, or cancel the operation.
The problem arises when one attempts to cancel the operation. Pressing Cancel dismisses the dialog box, bot it does not cancel the operation. No matter what one attempts to do within the editor, the dialog box will reappear insisting that an action be taken regarding the renaming operation. If this is the proper function of Cancel, then, perhaps, a different label for the button should be used. The button could also be removed altogether since using it has no net effect. |
|
_________________ Sic itur ad astra. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 12, 2009 6:20 pm |
It's doing exactly what it is supposed to...cancelling the dialog box and allowing you to fix the problem yourself. You should be able to rename the variable yourself after clicking cancel, or click the Cancel Changes button in the editor panel to revert the name to it's previous value. But if you were attempting to click on a different setting, then you won't be able to view another setting until you deal with the problem. You are not allowed to have two variables in the same class with the same name and CMUD isn't going to let you do much until you fix the issue.
|
|
|
|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Tue Jan 13, 2009 7:05 am |
I understand why it is doing what it is doing. My point is that by canceling the operation I am saying that I no longer want to rename the setting, I want to keep the old name. But that is no longer possible since the Editor insists that I give it a new name. I expected that Cancel would work the same as ESC in the Windows rename operation where pressing that button cancels the operation and the item retains its old name.
|
|
_________________ Sic itur ad astra. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jan 13, 2009 5:38 pm |
The dialog box that is being shown has no idea what the "old name" is. So it has no way to restore that. When the dialog is cancelled, you are allowed to change the name back in the editor. You can click the Cancel Changes button in the editor to restore the old values of the setting that you are editing. The Cancel on the Dialog box that you mentioned doesn't do this automatically because doing a "Cancel Changes" will undo *all* changes that you made to the setting, and not just the name. And people would be upset if they lost their script edits because of this. So CMUD forces you to deal with cancelling the changes yourself.
|
|
|
|
|
|