Hi Tonys, especially tfabris:
I don't know why only these two alternatives should exist. The function that is called after the activation (click/return/spacebar) of the OK button could just check if there are any changes pending, and skip doing anything besides closing the dialog.
This is how those functions work in my programs. To do this, you need to keep track of changed fields during the edit, and set an appropriate flag (and reset it upon "Apply" activation). This is a tradeoff issue: If applying the change is cheap (in terms of time), skip that flag, and just do the apply (again) on each activation of the OK button. If it is expensive, make sure you use such a flag (correctly).
cu,
sven
proud MkII owner (12GB blue/green/smoked, was #080000113 is #090001010)
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord