mirror of https://github.com/python/cpython.git
Include the filename in the errror message for F5 without saving.
This closes bug #110660.
This commit is contained in:
parent
6e5184fe6a
commit
3634112b40
|
@ -152,8 +152,12 @@ def getfilename(self):
|
|||
# Logic to make sure we have a saved filename
|
||||
# XXX Better logic would offer to save!
|
||||
if not self.editwin.get_saved():
|
||||
name = (self.editwin.short_title() or
|
||||
self.editwin.long_title() or
|
||||
"Untitled")
|
||||
self.errorbox("Not saved",
|
||||
"Please save first!")
|
||||
"The buffer for %s is not saved.\n" % name +
|
||||
"Please save it first!")
|
||||
self.editwin.text.focus_set()
|
||||
return
|
||||
filename = self.editwin.io.filename
|
||||
|
|
Loading…
Reference in New Issue