[evolution/gnome-2-30] Bug #604430 - Calendar view not remembered



commit b64434a8699fbeea77a9108b313f29828adab321
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]