From c1c4a7038026031f24f62dbe0c8af2c612d2c1f9 Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Fri, 12 Apr 2024 14:11:49 -0500 Subject: [PATCH] Ensure that files containing '=' are not stored in settings These cannot be parsed by the standard parser --- src/nexpy/gui/mainwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nexpy/gui/mainwindow.py b/src/nexpy/gui/mainwindow.py index c50bd8ec..d6d52ee9 100644 --- a/src/nexpy/gui/mainwindow.py +++ b/src/nexpy/gui/mainwindow.py @@ -1032,8 +1032,10 @@ def update_files(self, filename, recent=True): self.recent_file_actions[action] = (i, recent_file) self.settings.purge('recent') for recent_file in recent_files: - self.settings.set('recent', recent_file) - self.settings.set('session', filename) + if "=" not in recent_file: + self.settings.set('recent', recent_file) + if "=" not in filename: + self.settings.set('session', filename) self.settings.save() def save_file(self):