Skip to content

Commit

Permalink
Merge pull request #35 from tobias47n9e/master
Browse files Browse the repository at this point in the history
fix always appending .json to file names
  • Loading branch information
tobias47n9e committed Jul 13, 2015
2 parents cd4049d + af7518c commit 0861eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion innstereo/dialog_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def on_button_confirm_save_clicked(self, button):
If the file already exists a dialog will confirm the overwrite.
"""
self.filename = self.dialog.get_filename()
if self.filename[-5:] is not ".json":
if self.filename[-5:] != ".json":
self.filename = self.filename + ".json"
if os.path.exists(self.filename) == True:
overwrite = OverwriteDialog(self.write_data, self.dialog)
Expand Down

0 comments on commit 0861eb6

Please sign in to comment.