Bug 677974 - GIMP suggests XCF as default export format

Only auto-add .xcf if it's a save (not an export) dialog, instead do
not auto-add anything and ask the user to enter an extension, that's
less mysterious than saving in the last-exported format which the user
maybe doesn't remember or want.
This commit is contained in:
Michael Natterer
2012-06-12 22:33:47 +02:00
parent 67b5a509b6
commit 2f8d45611c

View File

@ -305,11 +305,11 @@ file_save_dialog_check_uri (GtkWidget *save_dialog,
GIMP_LOG (SAVE_DIALOG, "basename has no '.', trying to add extension");
if (! save_proc)
if (! save_proc && ! dialog->export)
{
ext = "xcf";
}
else if (save_proc->extensions_list)
else if (save_proc && save_proc->extensions_list)
{
ext = save_proc->extensions_list->data;
}