diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-07-20 15:06:33 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-07-20 15:06:33 +0800 |
commit | f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6 (patch) | |
tree | 1d49f7e1bfd22fbd7f3884084724ffa0d689066b /libempathy-gtk/empathy-individual-view.c | |
parent | 3b225294da4fb6f57d147f83c7ed78c8a44f0aec (diff) | |
download | gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar.gz gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar.bz2 gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar.lz gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar.xz gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.tar.zst gsoc2013-empathy-f544815fbc8ccc9e0f35bfbcdbed4692ef1ab8e6.zip |
Don't generate critical when dragging with no contact selected
This also fixes the problem where dragging with no contact selected drags the
previously selected contact.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=558942
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 0fb24430c..db63f0c0d 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -811,13 +811,13 @@ individual_view_drag_begin (GtkWidget *widget, priv = GET_PRIV (widget); - GTK_WIDGET_CLASS (empathy_individual_view_parent_class)->drag_begin (widget, - context); - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget)); if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return; + GTK_WIDGET_CLASS (empathy_individual_view_parent_class)->drag_begin (widget, + context); + path = gtk_tree_model_get_path (model, &iter); priv->drag_row = gtk_tree_row_reference_new (model, path); gtk_tree_path_free (path); |