diff options
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 2c9ca2d..b308cfe 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -865,11 +865,13 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context, gchar *filename; GError *error = NULL; GdkPixbufFormat *f; + const gchar *uri; p->have_drag_data = 1; p->drag_preview_pending = 0; + uri = (gchar *)seldata->data; - filename = g_filename_from_uri(seldata->data, NULL, &error); + filename = g_filename_from_uri(uri, NULL, &error); if ( filename == NULL ) { /* This doesn't even look like a sensible URI. |