From f69abb45624c371cf9e3e96cd9472f0d35f90b84 Mon Sep 17 00:00:00 2001 From: Harry Saunders <harry.saunders@stfc.ac.uk> Date: Tue, 12 Mar 2019 10:54:35 +0000 Subject: [PATCH] Set save_as default arg to None rather than False --- qt/python/mantidqt/widgets/codeeditor/interpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/python/mantidqt/widgets/codeeditor/interpreter.py b/qt/python/mantidqt/widgets/codeeditor/interpreter.py index f1ce253f6f7..dd77dcfae11 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() -- GitLab