From e9a6561f247a6dcd7edebcc1f035d336dfe87b28 Mon Sep 17 00:00:00 2001 From: teekuningas Date: Mon, 25 Mar 2024 09:05:50 +0200 Subject: [PATCH] Remember to save experiment settings after creating subject from sample data --- meggie/mainwindow/dialogs/addSubjectDialogMain.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meggie/mainwindow/dialogs/addSubjectDialogMain.py b/meggie/mainwindow/dialogs/addSubjectDialogMain.py index 5051cc5f..1d2ebd19 100644 --- a/meggie/mainwindow/dialogs/addSubjectDialogMain.py +++ b/meggie/mainwindow/dialogs/addSubjectDialogMain.py @@ -97,6 +97,12 @@ def _create_subject(): except Exception: logging.getLogger("ui_logger").exception("") + try: + self.parent.experiment.save_experiment_settings() + except Exception as exc: + exc_messagebox(self, exc) + return + self.parent.initialize_ui() self.close()