Skip to content

Commit

Permalink
pythongh-112898: Fix double close dialog with warning about unsafed f…
Browse files Browse the repository at this point in the history
…iles

Without this changeset I get two consecutive dialogs asking
if I want to save an unsafed file, when choosing "Cancel" in the
first one.
  • Loading branch information
ronaldoussoren committed Dec 27, 2023
1 parent f7c5a7a commit a0bb7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/idlelib/macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def help_dialog(event=None):
# The binding above doesn't reliably work on all versions of Tk
# on macOS. Adding command definition below does seem to do the
# right thing for now.
root.createcommand('::tk::mac::Quit', flist.close_all_callback)
root.createcommand('::tk::mac::Quit', lambda: "break")

if isCarbonTk():
# for Carbon AquaTk, replace the default Tk apple menu
Expand Down

0 comments on commit a0bb7ab

Please sign in to comment.