1
0
forked from IPKM/nmreval

fitresult: reset displayed ranges only if there is something to reset (#184)

closes #156

Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de>
Reviewed-on: IPKM/nmreval#184
This commit is contained in:
Dominik Demuth 2023-12-17 16:03:39 +00:00
parent 036d798813
commit 5b74ee1f29

View File

@ -157,6 +157,7 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog):
def reset_fit_ranges(self): def reset_fit_ranges(self):
for i in range(self.sets_comboBox.count()): for i in range(self.sets_comboBox.count()):
graph_id = self.sets_comboBox.itemData(i) graph_id = self.sets_comboBox.itemData(i)
if graph_id in self.graph_opts:
self.graph_opts.pop(graph_id) self.graph_opts.pop(graph_id)
self.fit_plot.enableAutoRange() self.fit_plot.enableAutoRange()