aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-05-12 11:02:01 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-05-12 11:02:01 +0000
commit18c5a509cd5c0c9d5252c5a52c04e4bc7e1f0b98 (patch)
tree161549c42124a37ab2e87367bc24b398df259dd5 /src/summaryview.c
parentd9ed04116ae3bebac43e0d98eea72310a62f74e4 (diff)
disable 'Attract by subject' if sorted.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@248 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 271ed552..c23bae7e 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1400,6 +1400,10 @@ void summary_attract_by_subject(SummaryView *summaryview)
gint count, i;
gint *new_order;
+ if (summaryview->folder_item &&
+ summaryview->folder_item->sort_key != SORT_BY_NONE)
+ return;
+
valid = gtk_tree_model_get_iter_first(model, &iter);
if (!valid)
return;