##// END OF EJS Templates
Fixed bug in creating error dialog for failed HTML export.
epatters -
Show More
@@ -112,9 +112,8 b' class HtmlExporter(object):'
112 try:
112 try:
113 return exporter(html, self.filename, self.image_tag)
113 return exporter(html, self.filename, self.image_tag)
114 except Exception, e:
114 except Exception, e:
115 title = self.window().windowTitle()
115 msg = "Error exporting HTML to %s\n" % self.filename + str(e)
116 msg = "Error while saving to: %s\n" % filename + str(e)
116 reply = QtGui.QMessageBox.warning(parent, 'Error', msg,
117 reply = QtGui.QMessageBox.warning(parent, title, msg,
118 QtGui.QMessageBox.Ok, QtGui.QMessageBox.Ok)
117 QtGui.QMessageBox.Ok, QtGui.QMessageBox.Ok)
119
118
120 return None
119 return None
General Comments 0
You need to be logged in to leave comments. Login now