hplip/hplip-unload-traceback.patch

18 lines
714 B
Diff

--- hplip-1.7.2/ui/scrollfunc.py.unload-traceback 2007-05-10 12:13:17.000000000 +0100
+++ hplip-1.7.2/ui/scrollfunc.py 2007-05-10 12:13:58.000000000 +0100
@@ -176,5 +176,14 @@
self.addControl(widget, str(title))
+ def FailureUI(self, error_text):
+ log.error(str(error_text).replace("<b>", "").replace("</b>", "").replace("<p>", ""))
+ QMessageBox.critical(self,
+ self.caption(),
+ error_text,
+ QMessageBox.Ok,
+ QMessageBox.NoButton,
+ QMessageBox.NoButton)
+
def __tr(self,s,c = None):
return qApp.translate("DevMgr4",s,c)