Skip to content
Browse files

Store filename on save() for future watch()

  • Loading branch information...
1 parent acaec5c commit 205f31dfdfbe36afa92d2d3eecf705e45b58271e @jtackaberry jtackaberry committed Apr 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/
3 src/
@@ -1093,6 +1093,9 @@ def save(self, filename=None, force=False):
if not self.filename:
raise ValueError, "Filename not specified and no default filename set."
filename = self.filename
+ elif not self.filename:
+ # Set stored filename for future watch() and save()
+ self.filename = filename
# If this callback was added due to autosave, remove it now.

0 comments on commit 205f31d

Please sign in to comment.
Something went wrong with that request. Please try again.