From 2913c7ef314431dbb93135e80d9fc228fe83f9de Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 20 May 2003 11:54:59 +0000 Subject: set 'initialized' to TRUE when initialization is done, or we get the 2003-05-19 Rodrigo Moya * gui/main.c (factory): set 'initialized' to TRUE when initialization is done, or we get the initialization code called over and over. svn path=/trunk/; revision=21274 --- calendar/gui/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/main.c') diff --git a/calendar/gui/main.c b/calendar/gui/main.c index f0534adbd1..a15c0ef846 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -150,8 +150,10 @@ factory (BonoboGenericFactory *factory, { static gboolean initialized = FALSE; - if (! initialized) + if (! initialized) { initialize (); + initialized = TRUE; + } if (strcmp (component_id, CALENDAR_COMPONENT_ID) == 0) return calendar_component_get_object (); -- cgit