aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-09-15 06:38:29 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-09-15 06:38:29 +0000
commit38d7eca153225fd1da44cd8a5f9e7fdf36307a86 (patch)
treebe8f0aa31c1b8f598dc9e8bda79f8f8e58e5a5e0 /src/mainwindow.c
parent7e2b849fe899ca25f1f76cba45da969ba4368587 (diff)
prevent IMAP error caused by sending multiple commands at the same time.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2968 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 185c42b9..a42fbcac 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3830,8 +3830,8 @@ static void prev_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
mimeview_step(messageview->mimeview, GTK_SCROLL_STEP_BACKWARD))
return;
- summary_step(mainwin->summaryview, GTK_SCROLL_STEP_BACKWARD);
- summary_mark_displayed_read(mainwin->summaryview, NULL);
+ if (summary_step(mainwin->summaryview, GTK_SCROLL_STEP_BACKWARD))
+ summary_mark_displayed_read(mainwin->summaryview, NULL);
}
static void next_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
@@ -3843,8 +3843,8 @@ static void next_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
mimeview_step(messageview->mimeview, GTK_SCROLL_STEP_FORWARD))
return;
- summary_step(mainwin->summaryview, GTK_SCROLL_STEP_FORWARD);
- summary_mark_displayed_read(mainwin->summaryview, NULL);
+ if (summary_step(mainwin->summaryview, GTK_SCROLL_STEP_FORWARD))
+ summary_mark_displayed_read(mainwin->summaryview, NULL);
}
static void prev_unread_cb(MainWindow *mainwin, guint action,