rem: a_ctGrpSetUnread->setEnabled(enabled);
context: void KNMainWindow::slotCollectionSelected(QListViewItem *i){  kdDebug(5003) << "KNMainWindow::slotCollectionSelected(QListViewItem *i)" << endl;  if(b_lockui)    return;  KNCollection *c=0;  KNNntpAccount *selectedAccount=0;  KNGroup *selectedGroup=0;  KNFolder *selectedFolder=0;  h_drView->clear();  slotArticleSelected(0);  if(i) {    c=(static_cast<KNCollectionViewItem*>(i))->coll;    switch(c->type()) {      case KNCollection::CTnntpAccount :        selectedAccount=static_cast<KNNntpAccount*>(c);        if(!i->isOpen())          i->setOpen(true);      break;      case KNCollection::CTgroup :        if (!(h_drView->hasFocus())&&!(a_rtView->hasFocus()))          h_drView->setFocus();        selectedGroup=static_cast<KNGroup*>(c);        selectedAccount=selectedGroup->account();      break;      case KNCollection::CTfolder :        if (!(h_drView->hasFocus())&&!(a_rtView->hasFocus()))          h_drView->setFocus();        selectedFolder=static_cast<KNFolder*>(c);      break;      default: break;    }  }  a_ccManager->setCurrentAccount(selectedAccount);  g_rpManager->setCurrentGroup(selectedGroup);  f_olManager->setCurrentFolder(selectedFolder);  if (!selectedGroup && !selectedFolder)         // called from showHeaders() otherwise    a_rtManager->updateStatusString();  updateCaption();  //actions  bool enabled;  enabled=(selectedGroup) || (selectedFolder && !selectedFolder->isRootFolder());  if(a_ctNavNextArt->isEnabled() != enabled) {    a_ctNavNextArt->setEnabled(enabled);    a_ctNavPrevArt->setEnabled(enabled);  }  enabled=( selectedGroup!=0 );  if(a_ctNavNextUnreadArt->isEnabled() != enabled) {    a_ctNavNextUnreadArt->setEnabled(enabled);    a_ctNavNextUnreadThread->setEnabled(enabled);    a_ctNavReadThrough->setEnabled(enabled);    a_ctFetchArticleWithID->setEnabled(enabled);  }  enabled=( selectedAccount!=0 );  if(a_ctAccProperties->isEnabled() != enabled) {    a_ctAccProperties->setEnabled(enabled);    a_ctAccRename->setEnabled(enabled);    a_ctAccSubscribe->setEnabled(enabled);    a_ctAccExpireAll->setEnabled(enabled);    a_ctAccGetNewHdrs->setEnabled(enabled);    a_ctAccDelete->setEnabled(enabled);    a_ctAccPostNewArticle->setEnabled(enabled);  }  enabled=( selectedGroup!=0 );  if(a_ctGrpProperties->isEnabled() != enabled) {    a_ctGrpProperties->setEnabled(enabled);    a_ctGrpRename->setEnabled(enabled);    a_ctGrpGetNewHdrs->setEnabled(enabled);    a_ctGrpExpire->setEnabled(enabled);    a_ctGrpReorganize->setEnabled(enabled);    a_ctGrpUnsubscribe->setEnabled(enabled);    a_ctGrpSetAllRead->setEnabled(enabled);    a_ctGrpSetAllUnread->setEnabled(enabled);    a_ctGrpSetUnread->setEnabled(enabled);    a_ctArtFilter->setEnabled(enabled);    a_ctArtFilterKeyb->setEnabled(enabled);    a_ctArtRefreshList->setEnabled(enabled);    a_ctArtCollapseAll->setEnabled(enabled);    a_ctArtExpandAll->setEnabled(enabled);    a_ctArtToggleShowThreads->setEnabled(enabled);    a_ctReScore->setEnabled(enabled);  }  a_ctFolNewChild->setEnabled(selectedFolder!=0);  enabled=( selectedFolder!=0 && !selectedFolder->isRootFolder() && !selectedFolder->isStandardFolder() );  if(a_ctFolDelete->isEnabled() != enabled) {    a_ctFolDelete->setEnabled(enabled);    a_ctFolRename->setEnabled(enabled);  }  enabled=( selectedFolder!=0 &&  !selectedFolder->isRootFolder() );  if(a_ctFolCompact->isEnabled() != enabled) {    a_ctFolCompact->setEnabled(enabled);    a_ctFolEmpty->setEnabled(enabled);    a_ctFolMboxImport->setEnabled(enabled);    a_ctFolMboxExport->setEnabled(enabled);  }}