aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.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/mainwindow.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/mainwindow.c')
-rw-r--r--src/mainwindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index a2b0fa1e..fefc77ba 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1871,9 +1871,13 @@ void main_window_set_menu_sensitive(MainWindow *mainwin)
if (item && item->sort_key != SORT_BY_NONE) {
menu_set_sensitive(ifactory, "/View/Sort/Ascending", TRUE);
menu_set_sensitive(ifactory, "/View/Sort/Descending", TRUE);
+ menu_set_sensitive(ifactory, "/View/Sort/Attract by subject",
+ FALSE);
} else {
menu_set_sensitive(ifactory, "/View/Sort/Ascending", FALSE);
menu_set_sensitive(ifactory, "/View/Sort/Descending", FALSE);
+ menu_set_sensitive(ifactory, "/View/Sort/Attract by subject",
+ (item != NULL));
}
SET_CHECK_MENU_ACTIVE("/View/Show all header",