From: Sergio Villar SenĂ­n Date: Fri, 8 May 2009 16:13:16 +0000 (+0200) Subject: Added an extra check X-Git-Tag: 3.0.17-rc4~15 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=2df4e39bc19eed85249fc613f47813719c1f0bfd Added an extra check Properly disconnect a signal on finalize --- diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 4f277ab..c7399b5 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -2097,7 +2097,7 @@ modest_mail_operation_create_folder (ModestMailOperation *self, } } - if (!strcmp (name, " ") || strchr (name, '/')) { + if (!priv->error && (!strcmp (name, " ") || strchr (name, '/'))) { priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED; g_set_error (&(priv->error), MODEST_MAIL_OPERATION_ERROR, MODEST_MAIL_OPERATION_ERROR_FOLDER_RULES, diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index fb32922..bd1673c 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -1385,6 +1385,19 @@ modest_folder_view_finalize (GObject *obj) priv->display_name_changed_signal = 0; } +#ifdef MODEST_TOOLKIT_HILDON2 + GtkTreeModel *tny_model; + + if (get_inner_models (MODEST_FOLDER_VIEW (obj), NULL, NULL, &tny_model)) { + if (g_signal_handler_is_connected (tny_model, + priv->activity_changed_handler)) { + g_signal_handler_disconnect (tny_model, + priv->activity_changed_handler); + priv->activity_changed_handler = 0; + } + } +#endif + if (priv->query) { g_object_unref (G_OBJECT (priv->query)); priv->query = NULL;