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:
parent
036d798813
commit
5b74ee1f29
@ -157,7 +157,8 @@ 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)
|
||||||
self.graph_opts.pop(graph_id)
|
if graph_id in self.graph_opts:
|
||||||
|
self.graph_opts.pop(graph_id)
|
||||||
|
|
||||||
self.fit_plot.enableAutoRange()
|
self.fit_plot.enableAutoRange()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user