SET_SENS("/Subscriptions/Unsubscribe...", item->stype == F_NORMAL && folder_item_parent(item) != NULL);
SET_SENS("/Subscriptions/Subscribe...", TRUE);
- menu_set_active(factory, "/Subscriptions/Show only subscribed folders", item->folder->account->imap_subsonly);
+ if (item->folder && item->folder->account)
+ menu_set_active(factory,
+ "/Subscriptions/Show only subscribed folders",
+ item->folder->account->imap_subsonly);
#undef SET_SENS
}
if (item->folder->account->imap_subsonly == GTK_CHECK_MENU_ITEM(widget)->active)
return;
+ if (folderview->opened == folderview->selected ||
+ gtk_ctree_is_ancestor(ctree,
+ folderview->selected,
+ folderview->opened)) {
+ summary_clear_all(folderview->summaryview);
+ folderview->opened = NULL;
+ }
+
item->folder->account->imap_subsonly = GTK_CHECK_MENU_ITEM(widget)->active;
folderview_fast_rescan_tree(item->folder);
}