[gimp/metadata-browser] Bug 677974 - GIMP suggests XCF as default export format
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 677974 - GIMP suggests XCF as default export format
- Date: Thu, 13 Sep 2012 00:24:51 +0000 (UTC)
commit 140fbf39d02ab5df116ea8aa0f9a8cb1a09b3a1e
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 12 22:33:47 2012 +0200
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.
app/dialogs/file-save-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 148df91..69edc86 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]