aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-18 05:49:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-18 05:49:42 +0000
commit1499320dd10a1cbfb52240d611725b056c094611 (patch)
tree194876f385ae60cda01d9c08e020f9d3e2455276 /src/main.c
parentf9fc05b1d610407c829b9f33648105298a4a6501 (diff)
open compose window before receiving on startup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3075 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 7db5de67..f272b07f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2011 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2012 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1661,6 +1661,12 @@ static void remote_command_exec(void)
}
if (!gtkut_window_modal_exist()) {
+ if (cmd.compose)
+ open_compose_new(cmd.compose_mailto, cmd.attach_files);
+
+ if (cmd.open_msg)
+ open_message(cmd.open_msg);
+
if (cmd.receive_all)
inc_all_account_mail(mainwin, FALSE);
else if (prefs_common.chk_on_startup)
@@ -1668,14 +1674,8 @@ static void remote_command_exec(void)
else if (cmd.receive)
inc_mail(mainwin);
- if (cmd.compose)
- open_compose_new(cmd.compose_mailto, cmd.attach_files);
-
if (cmd.send)
send_queue();
-
- if (cmd.open_msg)
- open_message(cmd.open_msg);
}
if (cmd.attach_files) {