Don't run dispose freeing the folder view, as this could cause problems with
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 14 Oct 2009 08:52:42 +0000 (10:52 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 14 Oct 2009 11:55:55 +0000 (13:55 +0200)
the list store.

src/hildon2/modest-folder-window.c
src/widgets/modest-folder-view.c

index 3b7604a..50e7672 100644 (file)
@@ -246,6 +246,11 @@ modest_folder_window_dispose (GObject *obj)
                        }
                        g_object_unref (iter);
                }
+
+               if (list && TNY_IS_GTK_FOLDER_LIST_STORE (list)) {
+                       g_object_run_dispose (G_OBJECT (list));
+               }
+
                g_object_unref (list);
        }       
 
index bed885b..b5ce7c8 100644 (file)
@@ -1374,10 +1374,6 @@ modest_folder_view_dispose (GObject *obj)
        get_inner_models (MODEST_FOLDER_VIEW (obj),
                          NULL, NULL, &model);
 
-       if (model && TNY_IS_GTK_FOLDER_LIST_STORE (model)) {
-               g_object_run_dispose (G_OBJECT (model));
-       }
-
 #ifdef MODEST_TOOLKIT_HILDON2
        if (priv->signal_handlers) {
                modest_signal_mgr_disconnect_all_and_destroy (priv->signal_handlers);