Fix a minor issue in the file portal test

get_data can be called multiple times, so we must not clear
the data the first time we get called.
This commit is contained in:
Matthias Clasen 2023-11-27 19:11:36 -05:00
parent 0bffedf5b8
commit a074f1fe72

View File

@ -48,8 +48,6 @@ drag_data_get (GtkWidget *widget,
char **uris = (char **)g_object_get_data (G_OBJECT (widget), "uris");
gtk_selection_data_set_uris (selection, uris);
g_object_set_data (G_OBJECT (widget), "uris", NULL);
}
static void