From 014152e30e6815db4e3df39fde682f02a51e2a74 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 7 Aug 2017 16:33:45 +0200 Subject: [PATCH] [add] saveAllEvents now connected to export for Autopick process and saveProject --- QtPyLoT.py | 2 ++ pylot/core/util/widgets.py | 1 + 2 files changed, 3 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 04843932..ec609a59 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -2550,6 +2550,7 @@ class MainWindow(QMainWindow): self.project.save(filename) self.setDirty(False) self.saveProjectAsAction.setEnabled(True) + self.exportAllEvents() self.update_status('Saved new project to {}'.format(filename), duration=5000) return True @@ -2565,6 +2566,7 @@ class MainWindow(QMainWindow): else: self.project.parameter = self._inputs self.project.save() + self.exportAllEvents() if not self.project.dirty: self.update_status('Saved back project to file:\n{}'.format(self.project.location), duration=5000) self.setDirty(False) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 85f1b9df..2c584426 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2869,6 +2869,7 @@ class AutoPickDlg(QDialog): self.gb.setLayout(self.jobLayout) def exportParameter(self): + self.parent().exportAllEvents() pylot_params = self.parent()._inputs self.addEvents2pp(pylot_params) pylot_params.export2File(self.pp_export)