Unwanted query to save changes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unwanted query to save changes

Alain Fischer-2
When I select a text and do an EvaluateIt in a class comment pane,
if after I select another class there is a dialog box asking:
"There are unsaved comment changes...".

I use class comment to lauch presenter while developing and I am tired
to ask always no, since I have not done changes to the comment.

To solve this, I have changed the following method:

SmalltalkWorkspace>>evaluateIt
        "Evaluate the currently selected text (or the current
        line if there is no selection) within the receiver's evaluation context"

        | result changeFlag |
        changeFlag := self isModified.
        result := self evaluateItIfFail: [].
        self isModified: changeFlag.
        ^result

But I don't know the side effects of such a modification.

Are others also using code in class comment ? In the OA code base there is a lot.

Perhaps OA could find a solution to avoid asking to save changes when there is no changes
I think this is also the case in other ...It workspace menu.


Alain