[geary] Fix print to file not working. Bug 778874.



commit a20cb240a3f9ef1e5ec272f4f3cb85bc543691b3
Author: Michael James Gratton <mike vee net>
Date:   Fri Feb 24 11:15:44 2017 +1100

    Fix print to file not working. Bug 778874.
    
    * src/client/conversation-viewer/conversation-email.vala
      (ConversationEmail::print): WebKit.PrintOperation.run_dialog will cause
      the print job to be executed if the user selects OK, so no need to
      manually do it ourself.

 .../conversation-viewer/conversation-email.vala    |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-email.vala 
b/src/client/conversation-viewer/conversation-email.vala
index fa6b84c..434e8d4 100644
--- a/src/client/conversation-viewer/conversation-email.vala
+++ b/src/client/conversation-viewer/conversation-email.vala
@@ -740,9 +740,8 @@ public class ConversationEmail : Gtk.Box {
             this.primary_message.web_view
         );
         Gtk.Window? window = get_toplevel() as Gtk.Window;
-        if (op.run_dialog(window) == WebKit.PrintOperationResponse.PRINT) {
-            op.print();
         }
+        op.run_dialog(window);
     }
 
     private void on_flag_remote_images(ConversationMessage view) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]