Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions printerproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ def on_btnPrintTestPage_clicked(self, button):
"the print job, most likely "
"because the printer is not "
"shared."),
self.parent)
self.dialog)
else:
show_IPP_Error(e, msg, self.parent)

Expand All @@ -1215,7 +1215,7 @@ def on_btnPrintTestPage_clicked(self, button):
if job_id is not None:
show_info_dialog (_("Submitted"),
_("Test page submitted as job %d") % job_id,
parent=self.parent)
parent=self.dialog)

def maintenance_command (self, command):
printer = self.printer
Expand All @@ -1236,7 +1236,7 @@ def maintenance_command (self, command):
show_info_dialog (_("Submitted"),
_("Maintenance command submitted as "
"job %d") % job_id,
parent=self.parent)
parent=self.dialog)
except cups.IPPError as e:
(e, msg) = e.args
if (e == cups.IPP_NOT_AUTHORIZED and
Expand All @@ -1246,7 +1246,7 @@ def maintenance_command (self, command):
"the print job, most likely "
"because the printer is not "
"shared."),
self.parent)
self.show_dialog)
else:
show_IPP_Error(e, msg, self.parent)
self.cups._end_operation ()
Expand Down