BrowserWindow.bjs
[app.webkitpdf] / BrowserWindow.vala
index 8de1bc5..6f54eb9 100644 (file)
@@ -159,7 +159,11 @@ public class BrowserWindow : Object
                            pe.set_default_page_setup(psetup);
                            print("Calling Print?\n");
                            //pe.run_dialog(_this.el);
-                           this.el.get_main_frame().print_full(pe,Gtk.PrintOperationAction.EXPORT);
+                           try {
+                                   this.el.get_main_frame().print_full(pe,Gtk.PrintOperationAction.EXPORT);
+                           } catch (Error e) {
+                                       // print failed...
+                               }