From: Sergio Villar Senin Date: Mon, 9 Nov 2009 09:16:21 +0000 (+0100) Subject: Do not update the header window if the window was previously closed X-Git-Tag: 3.1.13~1 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=70512b0d5e09c0d666aa6f31bc233b95a67f0e5d;hp=c3cb9f8d67fa2e16390a4633f9103b890495fa9e Do not update the header window if the window was previously closed Fixes NB#145788 --- diff --git a/src/hildon2/modest-header-window.c b/src/hildon2/modest-header-window.c index ade4e99..30816a3 100644 --- a/src/hildon2/modest-header-window.c +++ b/src/hildon2/modest-header-window.c @@ -990,6 +990,12 @@ update_view (ModestHeaderWindow *self, guint all_count; g_return_if_fail (MODEST_IS_HEADER_WINDOW(self)); + + /* It could happen when some event is received and the window + was previously closed */ + if (!MODEST_IS_HEADER_WINDOW (self)) + return; + priv = MODEST_HEADER_WINDOW_GET_PRIVATE (self); folder = modest_header_view_get_folder ((ModestHeaderView *) priv->header_view);