28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
|
diff -up system-config-printer-1.1.13/system-config-printer.py.test-page-traceback system-config-printer-1.1.13/system-config-printer.py
|
||
|
--- system-config-printer-1.1.13/system-config-printer.py.test-page-traceback 2009-11-05 10:24:09.782129808 +0000
|
||
|
+++ system-config-printer-1.1.13/system-config-printer.py 2009-11-05 10:24:22.512254783 +0000
|
||
|
@@ -6837,12 +6837,19 @@ class NewPrinterGUI(GtkGUI):
|
||
|
response = q.run ()
|
||
|
q.destroy ()
|
||
|
if response == gtk.RESPONSE_YES:
|
||
|
- # Load the printer details but hide the properties dialog.
|
||
|
- self.mainapp.display_properties_dialog_for (name)
|
||
|
self.mainapp.PrinterPropertiesDialog.hide ()
|
||
|
|
||
|
- # Click the test button.
|
||
|
- self.mainapp.btnPrintTestPage.clicked ()
|
||
|
+ properties_shown = False
|
||
|
+ try:
|
||
|
+ # Load the printer details but hide the properties dialog.
|
||
|
+ self.mainapp.display_properties_dialog_for (name)
|
||
|
+ properties_shown = True
|
||
|
+ except RuntimeError:
|
||
|
+ pass
|
||
|
+
|
||
|
+ if properties_shown:
|
||
|
+ # Click the test button.
|
||
|
+ self.mainapp.btnPrintTestPage.clicked ()
|
||
|
|
||
|
def checkDriverExists(self, name, ppd=None):
|
||
|
"""Check that the driver for an existing queue actually
|