app: Add import type as third preference on Export

This commit is contained in:
Alexia Death 2012-01-04 21:06:28 +02:00
parent 84b048744d
commit c585737f3a
1 changed files with 5 additions and 2 deletions

View File

@ -634,14 +634,17 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
/* Priority of default type/extension for Export: /* Priority of default type/extension for Export:
* *
* 1. Type of last Export * 1. Type of last Export
* 3. Type of latest Export of any document * 2. Type of latest Export of any document
* 2. .png * 3. Type of the image Import
* 4. .png
*/ */
ext_uri = gimp_image_get_exported_uri (image); ext_uri = gimp_image_get_exported_uri (image);
if (! ext_uri) if (! ext_uri)
ext_uri = g_object_get_data (G_OBJECT (gimp), ext_uri = g_object_get_data (G_OBJECT (gimp),
GIMP_FILE_EXPORT_LAST_URI_KEY); GIMP_FILE_EXPORT_LAST_URI_KEY);
if (! ext_uri)
ext_uri = gimp_image_get_imported_uri (image);
if (! ext_uri) if (! ext_uri)
ext_uri = "file:///we/only/care/about/extension.png"; ext_uri = "file:///we/only/care/about/extension.png";