aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--src/compose.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0db33cac..26612256 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-05-02
+ * src/compose.c: compose_attach_append(): fixed Bug #54: Focus problem
+ when reediting/forwarding emails after attachment deleted
+
+2012-05-02
+
* src/compose.c: when queueing messages or saving to draft folder,
disable them while mail checking only if queue or draft folder is
on IMAP server.
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;
}