[gimp] Bug 788403 - When importing an image, don't change to "untitled"...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 788403 - When importing an image, don't change to "untitled"...
- Date: Sun, 19 Nov 2017 18:23:34 +0000 (UTC)
commit 7e613516a2c84fb5484b1aec1cfd062ced734c94
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 19 19:21:15 2017 +0100
Bug 788403 - When importing an image, don't change to "untitled"...
...after exporting the image
Call gimp_image_name_changed() in both gimp_image_clean_all() and
gimp_image_export_clean_all() so we clear the cached displayed URI in
all cases, even if this means we're emitting "name-changed"
redundantly some times.
app/core/gimpimage.c | 4 ++++
app/file/file-save.c | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 3a00aea..9597b96 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -3266,6 +3266,8 @@ gimp_image_clean_all (GimpImage *image)
private->dirty_time = 0;
g_signal_emit (image, gimp_image_signals[CLEAN], 0, GIMP_DIRTY_ALL);
+
+ gimp_object_name_changed (GIMP_OBJECT (image));
}
void
@@ -3280,6 +3282,8 @@ gimp_image_export_clean_all (GimpImage *image)
private->export_dirty = 0;
g_signal_emit (image, gimp_image_signals[CLEAN], 0, GIMP_DIRTY_ALL);
+
+ gimp_object_name_changed (GIMP_OBJECT (image));
}
/**
diff --git a/app/file/file-save.c b/app/file/file-save.c
index c3493e0..e161525 100644
--- a/app/file/file-save.c
+++ b/app/file/file-save.c
@@ -233,8 +233,6 @@ file_save (Gimp *gimp,
* the export state to clean
*/
gimp_image_export_clean_all (image);
-
- gimp_object_name_changed (GIMP_OBJECT (image));
}
else if (export_forward)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]