[geary] Use path, not URI, when attaching files in mailto



commit 55dd58fbcd9442250a70572ffe019926372f77f4
Author: Charles Lindsay <chaz yorba org>
Date:   Fri Mar 7 12:36:33 2014 -0800

    Use path, not URI, when attaching files in mailto
    
    Closes: bgo #713865

 src/client/composer/composer-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index 9a295ca..d0a83e4 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -501,9 +501,9 @@ public class ComposerWindow : Gtk.Window {
                     Geary.Collection.get_first(headers.get("body"))));
             
             foreach (string attachment in headers.get("attach"))
-                add_attachment(File.new_for_uri(attachment));
+                add_attachment(File.new_for_path(attachment));
             foreach (string attachment in headers.get("attachment"))
-                add_attachment(File.new_for_uri(attachment));
+                add_attachment(File.new_for_path(attachment));
         }
     }
     


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