From c585737f3a547e8027133b96ae2db52d45a66bcc Mon Sep 17 00:00:00 2001 From: Alexia Death Date: Wed, 4 Jan 2012 21:06:28 +0200 Subject: [PATCH] app: Add import type as third preference on Export --- app/widgets/gimpfiledialog.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/widgets/gimpfiledialog.c b/app/widgets/gimpfiledialog.c index 914b5cddaf..0603856b52 100644 --- a/app/widgets/gimpfiledialog.c +++ b/app/widgets/gimpfiledialog.c @@ -634,14 +634,17 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog, /* Priority of default type/extension for Export: * * 1. Type of last Export - * 3. Type of latest Export of any document - * 2. .png + * 2. Type of latest Export of any document + * 3. Type of the image Import + * 4. .png */ ext_uri = gimp_image_get_exported_uri (image); if (! ext_uri) ext_uri = g_object_get_data (G_OBJECT (gimp), GIMP_FILE_EXPORT_LAST_URI_KEY); + if (! ext_uri) + ext_uri = gimp_image_get_imported_uri (image); if (! ext_uri) ext_uri = "file:///we/only/care/about/extension.png";