diff --git a/src/sas/qtgui/Plotting/Plotter.py b/src/sas/qtgui/Plotting/Plotter.py index dc18d9b915..12266ab6ae 100644 --- a/src/sas/qtgui/Plotting/Plotter.py +++ b/src/sas/qtgui/Plotting/Plotter.py @@ -394,7 +394,7 @@ def addPlotsToContextMenu(self): if plot.is_data: self.actionHideError = plot_menu.addAction("Hide Error Bar") - if plot.dy is not None and plot.dy != []: + if plot.dy is not None and len(plot.dy)>0: if plot.hide_error: self.actionHideError.setText('Show Error Bar') else: