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