From e32628d9e4f382c6a690ccf5a3409f7b6ef06727 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 2 May 2012 08:33:49 +0000 Subject: fixed Bug #54: Focus problem when reediting/forwarding emails after attachment deleted git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3072 ee746299-78ed-0310-b773-934348b2243d --- src/compose.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/compose.c b/src/compose.c index 71c9b7e0..3ea5e586 100644 --- a/src/compose.c +++ b/src/compose.c @@ -2285,10 +2285,12 @@ static void compose_attach_append(Compose *compose, const gchar *file, return; } if (size == 0) { + manage_window_focus_in(compose->window, NULL, NULL); alertpanel_notice(_("File %s is empty."), file); return; } if ((fp = g_fopen(file, "rb")) == NULL) { + manage_window_focus_in(compose->window, NULL, NULL); alertpanel_error(_("Can't read %s."), file); return; } -- cgit v1.2.3