[evolution/express2] Bug #604430 - Calendar view not remembered



commit dbbeab8bd0417702a182764386f727d27194774b
Author: Milan Crha <mcrha redhat com>
Date:   Tue Apr 27 19:06:57 2010 +0200

    Bug #604430 - Calendar view not remembered

 widgets/menus/gal-view-instance.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/widgets/menus/gal-view-instance.c b/widgets/menus/gal-view-instance.c
index fef74aa..0d18260 100644
--- a/widgets/menus/gal-view-instance.c
+++ b/widgets/menus/gal-view-instance.c
@@ -394,8 +394,9 @@ gal_view_instance_set_current_view_id (GalViewInstance *instance, const gchar *v
 		connect_view (instance, gal_view_clone (view));
 	}
 
-	save_current_view (instance);
-	gal_view_instance_changed(instance);
+	if (instance->loaded)
+		save_current_view (instance);
+	gal_view_instance_changed (instance);
 }
 
 GalView *



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