forked from AuroraMiddleware/gtk
Fix a crash in recent chooser DND
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=736173
This commit is contained in:
parent
532a8afeb1
commit
e5eb59a2f8
@ -1453,16 +1453,10 @@ append_uri_to_urilist (GtkTreeModel *model,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
DragData *drag_data = (DragData *) user_data;
|
DragData *drag_data = (DragData *) user_data;
|
||||||
GtkTreeModel *child_model;
|
|
||||||
GtkTreeIter child_iter;
|
|
||||||
gchar *uri = NULL;
|
gchar *uri = NULL;
|
||||||
gsize pos;
|
gsize pos;
|
||||||
|
|
||||||
child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (model));
|
gtk_tree_model_get (model, iter,
|
||||||
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,
|
|
||||||
RECENT_URI_COLUMN, &uri,
|
RECENT_URI_COLUMN, &uri,
|
||||||
-1);
|
-1);
|
||||||
g_assert (uri != NULL);
|
g_assert (uri != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user