From: Dirk-Jan C. Binnema Date: Tue, 8 Jan 2008 15:10:53 +0000 (+0000) Subject: * after removing the last attachment, move focus to subject field X-Git-Tag: git_migration_finished~1850 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=b4b289dc91c4a1a03125fa2bd7107b43d0d4f5c4 * after removing the last attachment, move focus to subject field Fixes NB#79088 pmo-trunk-r3993 --- diff --git a/src/maemo/modest-msg-edit-window.c b/src/maemo/modest-msg-edit-window.c index ed220af..9b15bec 100644 --- a/src/maemo/modest-msg-edit-window.c +++ b/src/maemo/modest-msg-edit-window.c @@ -2150,6 +2150,10 @@ modest_msg_edit_window_remove_attachments (ModestMsgEditWindow *window, if (clean_list) g_list_free (att_list); + + /* if the last attachment has been removed, focus the Subject: field */ + if (!modest_attachments_view_has_attachments (MODEST_ATTACHMENTS_VIEW (priv->attachments_view))) + gtk_widget_grab_focus (priv->subject_field); } static void