app: Forget import source after saving as XCF

Forget the import source after save. We interpret a save as that the
user is not interested in being able to quickly export back to the
original any longer. The effect of this is that if we have an
'Overwrite' menu item, it becomes insensitive and set to 'Export to'.
This commit is contained in:
Martin Nordholts 2009-07-02 21:33:00 +02:00
parent 8a1e826d99
commit 631e128ddd
1 changed files with 8 additions and 0 deletions

View File

@ -208,6 +208,14 @@ file_save_dialog_response (GtkWidget *save_dialog,
g_object_set_data_full (G_OBJECT (dialog->image->gimp),
GIMP_FILE_SAVE_LAST_URI_KEY,
g_strdup (uri), (GDestroyNotify) g_free);
/* Forget the import source when we save. We interpret a
* save as that the user is not interested in being able
* to quickly export back to the original any longer
*/
g_object_set_data (G_OBJECT (dialog->image),
GIMP_FILE_IMPORT_SOURCE_URI_KEY,
NULL);
}
else
{