Skip to content

Commit

Permalink
Merge pull request #3685 from dalthviz/fixes_issue_3678
Browse files Browse the repository at this point in the history
PR: Fixed weird behavior of "Save as"
  • Loading branch information
ccordoba12 authored Nov 21, 2016
2 parents 21877ed + ff473ee commit 0343e40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spyder/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,10 @@ def save_as(self, index=None):
# Save the currently edited file
index = self.get_stack_index()
finfo = self.data[index]
# The next line is necessary to avoid checking if the file exists
# While running __check_file_status
# See issues 3678 and 3026
finfo.newly_created = True
filename = self.select_savename(finfo.filename)
if filename:
ao_index = self.has_filename(filename)
Expand Down

0 comments on commit 0343e40

Please sign in to comment.