Commit e5eb59a2 authored by Hiroyuki Ito's avatar Hiroyuki Ito Committed by Matthias Clasen

Fix a crash in recent chooser DND

Reported in https://bugzilla.gnome.org/show_bug.cgi?id=736173
parent 532a8afe
......@@ -1453,16 +1453,10 @@ append_uri_to_urilist (GtkTreeModel *model,
gpointer user_data)
{
DragData *drag_data = (DragData *) user_data;
GtkTreeModel *child_model;
GtkTreeIter child_iter;
gchar *uri = NULL;
gsize pos;
child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (model));
gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (model),
&child_iter,
iter);
gtk_tree_model_get (child_model, &child_iter,
gtk_tree_model_get (model, iter,
RECENT_URI_COLUMN, &uri,
-1);
g_assert (uri != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment