[gthumb] do not delete the tags if not changed in the dialog



commit 2204807d4cdd617c10e619ac9685527d968ff8fc
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jun 27 22:25:26 2010 +0200

    do not delete the tags if not changed in the dialog

 extensions/edit_metadata/gth-edit-comment-page.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/extensions/edit_metadata/gth-edit-comment-page.c b/extensions/edit_metadata/gth-edit-comment-page.c
index 93ea38b..a50d17a 100644
--- a/extensions/edit_metadata/gth-edit-comment-page.c
+++ b/extensions/edit_metadata/gth-edit-comment-page.c
@@ -268,7 +268,10 @@ gth_edit_comment_page_real_update_info (GthEditMetadataPage *base,
 	for (i = 0; tagv[i] != NULL; i++)
 		tags = g_list_prepend (tags, tagv[i]);
 	tags = g_list_reverse (tags);
-	string_list = gth_string_list_new (tags);
+	if (tags != NULL)
+		string_list = gth_string_list_new (tags);
+	else
+		string_list = NULL;
 	if (! only_modified_fields || ! gth_file_data_attribute_equal_string_list (file_data, "general::tags", string_list))
 		g_file_info_set_attribute_object (info, "general::tags", G_OBJECT (string_list));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]