Manuscript (Case [Issue]20741) Kernel - SessionManager>>#snapshot:andQuit: should do nothing when the two parameters are false and false.

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

Manuscript (Case [Issue]20741) Kernel - SessionManager>>#snapshot:andQuit: should do nothing when the two parameters are false and false.

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Kernel: 1. Pharo Image  •  You are subscribed to this case
But when you read the code of this method, when you call it with false and false as arguments, it does some actions.

I think it should not.

I looked at the senders in the image, none of them call it with false and false as arguments.

A simple solution is to add a guard boolean expression:

(save not and: [ quit not ])
ifTrue: [ ^ self ]
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker