Need of a cancel button
Bug #117450 reported by
David Boucher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gNumExp |
Fix Committed
|
Low
|
Unassigned |
Bug Description
I open a plot window. I draw a function.
Then, I enter CTRL-Q to close the window and then I realize I should not quit. gNumExp only proposes me to save my work or to quit without saving.
It could be cool to have the choice to cancel my last action to continue my work.
Remark : If I click on the close button of the window, I have the three choices, say CANCEL, CLOSE wihout saving and save my work.
But those two actions are different... Maybe we could also have a CTRL-W shortcut to close the window attached to a menu item Close the window.
To post a comment you must log in.
This behaviour was copied from gedit, at the time I wrote it. Meanwhile even gedit has changed behaviour to do what you want, so I guess it must be OK.
I can't fix it right now because I would have to update gnumexp to use the new goocanvas API, and I have little time for gnumexp right now :(
However, if you want to fix it's trivial; just go to gnumex/src/main.py and around line 300 you'll find this method:
def close(self, quitting=False): save_hook( can_cancel= (not quitting))
self. destroy( )
close = self.document_
if close:
I think it is pretty obvious how to fix the code ;-)