diff --git a/qt/python/mantidqt/widgets/codeeditor/interpreter.py b/qt/python/mantidqt/widgets/codeeditor/interpreter.py index f1ce253f6f7e290b06d656c5ba46aa32405cca17..dd77dcfae1175662850744e9f80a58b4d4da2e1f 100644 --- a/qt/python/mantidqt/widgets/codeeditor/interpreter.py +++ b/qt/python/mantidqt/widgets/codeeditor/interpreter.py @@ -80,8 +80,8 @@ class EditorIO(object): # pretend the user clicked No on the dialog return True - def write(self, save_as=False): - if save_as: + def write(self, save_as=None): + if save_as is not None: filename = save_as else: filename = self.editor.fileName()