1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +01:00

fix(waveform): safeguard for _scan_history_closed

This commit is contained in:
2025-10-07 14:08:30 +02:00
committed by Jan Wyzula
parent 7e88a002b6
commit 2bf489600e

View File

@@ -467,6 +467,8 @@ class Waveform(PlotBase):
"""
Slot for when the scan history dialog is closed.
"""
if self.scan_history_dialog is None:
return
self.scan_history_widget.close()
self.scan_history_widget.deleteLater()
self.scan_history_dialog.deleteLater()