From: Jose Dapena Paz Date: Fri, 18 Apr 2008 16:49:59 +0000 (+0000) Subject: * src/modest-ui-actions.c: X-Git-Tag: git_migration_finished~1445 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=642e39afa8a2b12eee030af7eb7d59c74cb95108;ds=sidebyside * src/modest-ui-actions.c: * Disallow opening messages (with header activate) when they're being sent (fixes NB#83721). pmo-trunk-r4434 --- diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index f28f61b..ecae79a 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2189,6 +2189,7 @@ modest_ui_actions_on_header_activated (ModestHeaderView *header_view, ModestMainWindow *main_window) { TnyList *headers; + GtkWidget *open_widget; g_return_if_fail (MODEST_IS_MAIN_WINDOW(main_window)); @@ -2206,6 +2207,10 @@ modest_ui_actions_on_header_activated (ModestHeaderView *header_view, if (modest_platform_check_memory_low (MODEST_WINDOW(main_window))) return; + modest_ui_actions_check_menu_dimming_rules (MODEST_WINDOW (main_window)); + open_widget = modest_window_get_action_widget (MODEST_WINDOW (main_window), "/MenuBar/EmailMenu/EmailOpenMenu"); + if (!GTK_WIDGET_IS_SENSITIVE (open_widget)) + return; /* headers = tny_simple_list_new (); */ /* tny_list_prepend (headers, G_OBJECT (header)); */