From 9bd09eab183c7ef79a34128e94415494ab104731 2011-03-12 00:58:23 From: epatters Date: 2011-03-12 00:58:23 Subject: [PATCH] Fixed bug in creating error dialog for failed HTML export. --- diff --git a/IPython/frontend/qt/rich_text.py b/IPython/frontend/qt/rich_text.py index 8cf23d3..778acc5 100644 --- a/IPython/frontend/qt/rich_text.py +++ b/IPython/frontend/qt/rich_text.py @@ -112,9 +112,8 @@ class HtmlExporter(object): try: return exporter(html, self.filename, self.image_tag) except Exception, e: - title = self.window().windowTitle() - msg = "Error while saving to: %s\n" % filename + str(e) - reply = QtGui.QMessageBox.warning(parent, title, msg, + msg = "Error exporting HTML to %s\n" % self.filename + str(e) + reply = QtGui.QMessageBox.warning(parent, 'Error', msg, QtGui.QMessageBox.Ok, QtGui.QMessageBox.Ok) return None