Bug 687673 - The image has been exported to '(null)' when export...

Show the imported URI if the exported URI is NULL, they are equivalent
for this dialog.
This commit is contained in:
Michael Natterer 2012-11-06 22:10:37 +01:00
parent e746fa51da
commit 55f025e469
1 changed files with 10 additions and 3 deletions

View File

@ -300,9 +300,16 @@ gimp_display_shell_close_time_changed (GimpMessageBox *box)
}
if (! gimp_image_is_export_dirty (image))
export_text =
g_strdup_printf (_("The image has been exported to '%s'."),
gimp_image_get_exported_uri (image));
{
const gchar *exported_uri = gimp_image_get_exported_uri (image);
if (! exported_uri)
exported_uri = gimp_image_get_imported_uri (image);
export_text =
g_strdup_printf (_("The image has been exported to '%s'."),
exported_uri);
}
if (time_text && export_text)
gimp_message_box_set_text (box, "%s\n\n%s", time_text, export_text);