diff --git a/Orange/widgets/widget.py b/Orange/widgets/widget.py index 01d5a9885d9..13bd5a86761 100644 --- a/Orange/widgets/widget.py +++ b/Orange/widgets/widget.py @@ -339,10 +339,11 @@ def save_graph(self): saveplot.save_plot(graph_obj, self.graph_writers) def copy_to_clipboard(self): - graph_obj = getdeepattr(self, self.graph_name, None) - if graph_obj is None: - return - ClipboardFormat.write_image(None, graph_obj) + if self.graph_name: + graph_obj = getdeepattr(self, self.graph_name, None) + if graph_obj is None: + return + ClipboardFormat.write_image(None, graph_obj) def __restoreWidgetGeometry(self):