Skip to content

Commit 45e07ac

Browse files
authored
Merge pull request #414 from shartrec/master
Issue 412 - Fix incorrect dialog parents
2 parents 02f14f0 + 5368d7b commit 45e07ac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

printerproperties.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def on_btnPrintTestPage_clicked(self, button):
12051205
"the print job, most likely "
12061206
"because the printer is not "
12071207
"shared."),
1208-
self.parent)
1208+
self.dialog)
12091209
else:
12101210
show_IPP_Error(e, msg, self.parent)
12111211

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

12201220
def maintenance_command (self, command):
12211221
printer = self.printer
@@ -1236,7 +1236,7 @@ def maintenance_command (self, command):
12361236
show_info_dialog (_("Submitted"),
12371237
_("Maintenance command submitted as "
12381238
"job %d") % job_id,
1239-
parent=self.parent)
1239+
parent=self.dialog)
12401240
except cups.IPPError as e:
12411241
(e, msg) = e.args
12421242
if (e == cups.IPP_NOT_AUTHORIZED and
@@ -1246,7 +1246,7 @@ def maintenance_command (self, command):
12461246
"the print job, most likely "
12471247
"because the printer is not "
12481248
"shared."),
1249-
self.parent)
1249+
self.show_dialog)
12501250
else:
12511251
show_IPP_Error(e, msg, self.parent)
12521252
self.cups._end_operation ()

0 commit comments

Comments
 (0)