mirror of https://github.com/GNOME/gimp.git
app: don't keep images from the clipboard in gimp->images
They are temporary internal objects. In gimp->images they would be visible in the GUI and PDB.
This commit is contained in:
parent
5136f131be
commit
0740d8d688
|
@ -377,7 +377,12 @@ gimp_selection_data_get_xcf (GtkSelectionData *selection,
|
|||
|
||||
image = xcf_load_stream (gimp, input, NULL, NULL, &error);
|
||||
|
||||
if (! image)
|
||||
if (image)
|
||||
{
|
||||
/* don't keep clipboard images in the image list */
|
||||
gimp_container_remove (gimp->images, GIMP_OBJECT (image));
|
||||
}
|
||||
else
|
||||
{
|
||||
g_warning ("Recieved invalid XCF data: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
|
|
Loading…
Reference in New Issue