From beed6566c2033270bd7a6ff9218ced4fd6de1bba Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 14 Oct 2009 10:52:42 +0200 Subject: [PATCH 1/1] Don't run dispose freeing the folder view, as this could cause problems with the list store. --- src/hildon2/modest-folder-window.c | 5 +++++ src/widgets/modest-folder-view.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hildon2/modest-folder-window.c b/src/hildon2/modest-folder-window.c index 3b7604a..50e7672 100644 --- a/src/hildon2/modest-folder-window.c +++ b/src/hildon2/modest-folder-window.c @@ -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); } diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index bed885b..b5ce7c8 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -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); -- 1.7.9.5