[gthumb] EXIF tags listed more than once when disabling and then re-enabling the EXIF extension



commit 0d3debdc0a32643a331493ae2dd5d08184a3a06f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Jul 6 23:26:04 2011 +0200

    EXIF tags listed more than once when disabling and then re-enabling the EXIF extension
    
    [bug #621454]

 gthumb/gth-extensions.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-extensions.c b/gthumb/gth-extensions.c
index cad8e1e..03a11de 100644
--- a/gthumb/gth-extensions.c
+++ b/gthumb/gth-extensions.c
@@ -283,12 +283,16 @@ gth_extension_module_real_activate (GthExtension  *base,
 
 	self = GTH_EXTENSION_MODULE (base);
 
-	if (base->active)
+	if (base->active || base->initialized) {
+		base->active = TRUE;
 		return TRUE;
+	}
 
 	success = gth_extension_module_exec_generic_func (self, "activate", error);
-	if (success)
+	if (success) {
 		base->active = TRUE;
+		base->initialized = TRUE;
+	}
 
 	return success;
 }



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