Skip to content

Commit

Permalink
[BugFix] FileManager: do not save if editor not dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDuquesnoy committed Jun 27, 2015
1 parent fdec93f commit 4c268aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyqode/core/managers/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ def save(self, path=None, encoding=None, fallback_encoding=None):
error. None to use the locale preferred encoding
"""
if not self.editor.dirty:
return
if fallback_encoding is None:
fallback_encoding = locale.getpreferredencoding()
_logger().debug(
Expand Down

0 comments on commit 4c268aa

Please sign in to comment.