bugfix: remove value display item from graph before deletion

This commit is contained in:
Dominik Demuth 2023-06-15 20:00:52 +02:00
parent 4268bdc5ae
commit 89c640e591

View File

@ -393,6 +393,8 @@ class NMRMainWindow(QtWidgets.QMainWindow, Ui_BaseWindow):
self.current_graph_widget.remove_external(item) self.current_graph_widget.remove_external(item)
if val_figure == gid: if val_figure == gid:
self.current_graph_widget.remove_external(self.valuewidget.selection_real)
self.current_graph_widget.remove_external(self.valuewidget.selection_imag)
self.tabWidget.setCurrentIndex(0) self.tabWidget.setCurrentIndex(0)
self.current_graph_widget.enable_picking(False) self.current_graph_widget.enable_picking(False)