From: Sergio Villar Senin Date: Fri, 15 Feb 2008 12:22:40 +0000 (+0000) Subject: * Fixes NB#79777, now it's possible to continuously delete msgs in viewer using... X-Git-Tag: git_migration_finished~1673 X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;h=ed5dbf6e03d7269c3333423b8246dfb024b9db2f;hp=4342e230f9897bdb58c79030f832e936f6027bf8;p=modest * Fixes NB#79777, now it's possible to continuously delete msgs in viewer using the HW Backspace pmo-trunk-r4182 --- diff --git a/src/maemo/modest-msg-view-window.c b/src/maemo/modest-msg-view-window.c index 16ed9cb..41dbf0d 100644 --- a/src/maemo/modest-msg-view-window.c +++ b/src/maemo/modest-msg-view-window.c @@ -1628,10 +1628,6 @@ message_reader_performer (gboolean canceled, modest_mail_operation_get_msg (mail_op, info->header, view_msg_cb, info->row_reference); g_object_unref (mail_op); - /* Update dimming rules */ - modest_ui_actions_check_toolbar_dimming_rules (MODEST_WINDOW (parent_window)); - modest_ui_actions_check_menu_dimming_rules (MODEST_WINDOW (parent_window)); - frees: /* Frees. The row_reference will be freed by the view_msg_cb callback */ g_object_unref (info->header); @@ -2247,6 +2243,14 @@ on_mail_operation_finished (ModestMailOperation *mail_op, if (observers_empty (self)) { set_toolbar_mode (self, TOOLBAR_MODE_NORMAL); } + + /* Update dimming rules. We have to do this right here + and not in view_msg_cb because at that point the + transfer mode is still enabled so the dimming rule + won't let the user delete the message that has been + readed for example */ + modest_ui_actions_check_toolbar_dimming_rules (MODEST_WINDOW (self)); + modest_ui_actions_check_menu_dimming_rules (MODEST_WINDOW (self)); } }