aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-19 08:54:30 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-19 08:54:30 +0000
commita148c8534ad9eeec008134db45e4eb1bfbfdb587 (patch)
treed4b852a5d1e5d0a1c7ca4233f7fc509b848ae4e1 /src
parent89df5e1e15f6d188b452334a91f5a24b08647862 (diff)
fixed 'Stop' button didn't become inactive after POP3 session finished.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3110 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/inc.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/inc.c b/src/inc.c
index 1ad70cfc..e8c1b12a 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -293,9 +293,9 @@ void inc_mail(MainWindow *mainwin)
if (prefs_common.use_extinc && prefs_common.extinc_cmd) {
/* external incorporating program */
if (execute_command_line(prefs_common.extinc_cmd, FALSE) != 0) {
+ inc_is_running = FALSE;
main_window_unlock(mainwin);
inc_autocheck_timer_set();
- inc_is_running = FALSE;
return;
}
@@ -318,10 +318,11 @@ void inc_mail(MainWindow *mainwin)
inc_finished(mainwin, list);
slist_free_strings(list);
g_slist_free(list);
- main_window_unlock(mainwin);
- inc_autocheck_timer_set();
inc_is_running = FALSE;
+
+ main_window_unlock(mainwin);
+ inc_autocheck_timer_set();
}
static gint inc_remote_account_mail(MainWindow *mainwin, PrefsAccount *account)
@@ -503,11 +504,12 @@ gint inc_account_mail(MainWindow *mainwin, PrefsAccount *account)
inc_finished(mainwin, list);
slist_free_strings(list);
g_slist_free(list);
- main_window_unlock(mainwin);
- inc_autocheck_timer_set();
inc_is_running = FALSE;
+ main_window_unlock(mainwin);
+ inc_autocheck_timer_set();
+
return new_msgs;
}
@@ -576,10 +578,11 @@ void inc_all_account_mail(MainWindow *mainwin, gboolean autocheck)
inc_finished(mainwin, count_list);
slist_free_strings(count_list);
g_slist_free(count_list);
- main_window_unlock(mainwin);
- inc_autocheck_timer_set();
inc_is_running = FALSE;
+
+ main_window_unlock(mainwin);
+ inc_autocheck_timer_set();
}
gint inc_pop_before_smtp(PrefsAccount *account)
@@ -617,11 +620,11 @@ gint inc_pop_before_smtp(PrefsAccount *account)
inc_start(inc_dialog, NULL);
+ inc_is_running = FALSE;
+
main_window_unlock(mainwin);
inc_autocheck_timer_set();
- inc_is_running = FALSE;
-
return 0;
}