Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PyReconstruct/modules/datatypes/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ def save(self, update_series_data=True):
if self.series.isWelcomeSeries():
return

# a deleted section can still be the b section: do not write its
# file back
if self.n not in self.series.sections:
return

# update the series data
if update_series_data:
self.series.data.updateSection(self, update_traces=True)
Expand Down
4 changes: 4 additions & 0 deletions PyReconstruct/modules/gui/main/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,10 @@ def saveAllData(self):
# if button.isChecked():
# self.series.current_trace = button.trace
self.field.section.save(update_series_data=False)
# the b section can hold unsaved edits (flicker changes section
# without saving), so it is written too
if self.field.b_section:
self.field.b_section.save(update_series_data=False)
self.series.save()

def backup(self, check_auto=False, comment=""):
Expand Down
Loading