diff options
author | Shaun McCance <Shaun McCance> | 2009-10-07 23:47:41 +0800 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2009-11-25 05:16:06 +0800 |
commit | 89bc747b15ff519b81b8b153bcf94c8cd19245b1 (patch) | |
tree | 217393634fde4a71541684789b7f50d26ede1bad | |
parent | bcc824a40f40c86e87cfdd84c00652ada111fdaa (diff) | |
download | gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar.gz gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar.bz2 gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar.lz gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar.xz gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.tar.zst gsoc2013-empathy-89bc747b15ff519b81b8b153bcf94c8cd19245b1.zip |
[empathy-contact-list-view] Don't accept file drags to offline/non-FT contacts
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 0a9b260f8..6b25cc10f 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -505,7 +505,9 @@ contact_list_view_drag_motion (GtkWidget *widget, gtk_tree_model_get (model, &iter, EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, -1); - if (contact) { + if (contact != NULL && + empathy_contact_is_online (contact) && + (empathy_contact_get_capabilities (contact) & EMPATHY_CAPABILITIES_FT)) { gdk_drag_status (context, GDK_ACTION_COPY, time_); gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (widget), path, |