From 757f863daacc07b9feb31f4b7a4c37333bdd9f75 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 7 Apr 2008 15:34:31 +0000 Subject: [PATCH 1/1] * Fixes NB#83582, do not "hang" when sending messages with invalid SMTP server configuration. This fix prevents some unneeded Gconf calls that could slow down the retrieval of the connection iap pmo-trunk-r4375 --- src/modest-ui-actions.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index cfd30e7..2728eca 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2299,13 +2299,18 @@ modest_ui_actions_on_folder_selection_changed (ModestFolderView *folder_view, G_OBJECT(header_view), MODEST_CONF_HEADER_VIEW_KEY); } else { - /* Update the active account */ - //modest_window_set_active_account (MODEST_WINDOW (main_window), NULL); - /* Save only if we're seeing headers */ + /* No need to save the header view + configuration for Maemo because it only + saves the sorting stuff and that it's + already being done by the sort + dialog. Remove it when the GNOME version + has the same behaviour */ +#ifdef MODEST_PLATFORM_GNOME if (modest_main_window_get_contents_style (main_window) == MODEST_MAIN_WINDOW_CONTENTS_STYLE_HEADERS) modest_widget_memory_save (conf, G_OBJECT (header_view), MODEST_CONF_HEADER_VIEW_KEY); +#endif modest_header_view_clear (MODEST_HEADER_VIEW(header_view)); } } -- 1.7.9.5