* after removing the last attachment, move focus to subject field
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 8 Jan 2008 15:10:53 +0000 (15:10 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 8 Jan 2008 15:10:53 +0000 (15:10 +0000)
  Fixes NB#79088

pmo-trunk-r3993

src/maemo/modest-msg-edit-window.c

index ed220af..9b15bec 100644 (file)
@@ -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