Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel in qt console closeevent should trigger event.ignore() #933

Closed
wants to merge 1 commit into from

Conversation

jenshnielsen
Copy link
Contributor

When quitting ipython using for example the file quit option ipython quits even if you press cancel.
This pull request fixes that by inserting event.ignore() in the code the runs when cancel is pressed
and indenting the event.accept() so that it is only triggered when the yes button is pressed.

From the qt documentation and tutorials that I could find this seems to be the right way of using closeevent.

@minrk
Copy link
Member

minrk commented Oct 26, 2011

makes sense.

@epatters
Copy link
Contributor

I committed this without a merge, but GitHub hasn't clued in. Thanks for the fix!

@epatters epatters closed this Oct 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants