--- /usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py.orig 2011-07-27 20:23:00.000000000 +0200
+++ /usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py 2013-01-02 14:27:36.988668416 +0100
@@ -1017,27 +1017,30 @@
format=format,
file=tmpfname,
user=self.connect_user)
- self.lblInfo.set_markup ('' +
- i18nc("Maintenance command submitted", "Submitted") + '\n\n' +
- i18n("Maintenance command submitted as "
- "job %d", job_id))
- self.InfoDialog.set_transient_for (self.MainWindow)
- self.InfoDialog.run ()
- self.InfoDialog.hide ()
+ #self.lblInfo.set_markup ('' +
+ # i18nc("Maintenance command submitted", "Submitted") + '\n\n' +
+ # i18n("Maintenance command submitted as "
+ # "job %d", job_id))
+ #self.InfoDialog.set_transient_for (self.MainWindow)
+ #self.InfoDialog.run ()
+ #self.InfoDialog.hide ()
+ KMessageBox.information(self, i18n("Maintenance command '%2' submitted as job %1", job_id, command), i18nc("Maintenance command submitted", "Submitted"))
except cups.IPPError, (e, msg):
- if (e == cups.IPP_NOT_AUTHORIZED and
- self.printer.name != 'localhost'):
- self.lblError.set_markup (''+
- i18n("Not possible") + '\n\n' +
- i18n("The remote server did not accept "
- "the print job, most likely "
- "because the printer is not "
- "shared."))
- self.ErrorDialog.set_transient_for (self.MainWindow)
- self.ErrorDialog.run ()
- self.ErrorDialog.hide ()
- else:
- self.show_IPP_Error(e, msg)
+
+ #if (e == cups.IPP_NOT_AUTHORIZED and
+ # self.printer.name != 'localhost'):
+ # #self.lblError.set_markup (''+
+ # # i18n("Not possible") + '\n\n' +
+ # # i18n("The remote server did not accept "
+ # # "the print job, most likely "
+ # # "because the printer is not "
+ # # "shared."))
+ # self.ErrorDialog.set_transient_for (self.MainWindow)
+ # self.ErrorDialog.run ()
+ # self.ErrorDialog.hide ()
+ #else:
+ # self.show_IPP_Error(e, msg)
+ self.show_IPP_Error(e, msg)
@pyqtSignature("")
def on_btnSelfTest_clicked(self):