[gthumb/ext] do not set the name if the date is valid



commit f5454c6bd5d7352410124e62d3bc5affb3820ce9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Dec 19 11:33:59 2009 +0100

    do not set the name if the date is valid

 extensions/catalogs/dlg-catalog-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/catalogs/dlg-catalog-properties.c b/extensions/catalogs/dlg-catalog-properties.c
index 980fa32..4df7e16 100644
--- a/extensions/catalogs/dlg-catalog-properties.c
+++ b/extensions/catalogs/dlg-catalog-properties.c
@@ -174,7 +174,7 @@ catalog_ready_cb (GObject  *object,
 	if (gth_catalog_get_name (data->catalog) != NULL) {
 		gtk_entry_set_text (GTK_ENTRY (GET_WIDGET ("name_entry")), gth_catalog_get_name (data->catalog));
 	}
-	else {
+	else if (! gth_datetime_valid (gth_catalog_get_date (data->catalog))) {
 		char *basename;
 		char *name;
 		char *utf8_name;



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