[geary/wip/722740-remote-attachments: 2/2] Allow any files to be added via DnD.



commit 0cc3d142af30d7b52e00e2f1b2c20187b1f1f12b
Author: Michael James Gratton <mike vee net>
Date:   Tue Nov 21 12:25:00 2017 +1100

    Allow any files to be added via DnD.

 src/client/composer/composer-widget.vala |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 36ff23b..2d6f50a 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -933,9 +933,6 @@ public class ComposerWidget : Gtk.EventBox {
             string uri_list = (string) selection_data.get_data();
             string[] uris = uri_list.strip().split("\n");
             foreach (string uri in uris) {
-                if (!uri.has_prefix(FILE_URI_PREFIX))
-                    continue;
-
                 try {
                     add_attachment_part(File.new_for_uri(uri.strip()));
                 } catch (Error err) {


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