aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-02 08:33:49 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-02 08:33:49 +0000
commite32628d9e4f382c6a690ccf5a3409f7b6ef06727 (patch)
tree47d7066b1f548872e68bb5e42a811a1571106fd3 /src
parent35cbfb31857c2d26b9050e4f3bc6112400cb0dfc (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/compose.c2
1 files changed, 2 insertions, 0 deletions
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;
}