From b4b289dc91c4a1a03125fa2bd7107b43d0d4f5c4 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 8 Jan 2008 15:10:53 +0000 Subject: [PATCH] * after removing the last attachment, move focus to subject field Fixes NB#79088 pmo-trunk-r3993 --- src/maemo/modest-msg-edit-window.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.9.5