QTfrontend/ui/widget/chatwidget.cpp
changeset 9726 dfdde45181ec
parent 9493 23c674bfa2e2
child 9728 320f89e0b28c
equal deleted inserted replaced
9725:68b5d87cfdb0 9726:dfdde45181ec
   869 
   869 
   870     if(!players)
   870     if(!players)
   871         return;
   871         return;
   872 
   872 
   873     bool isSelf = (nick == m_userNick);
   873     bool isSelf = (nick == m_userNick);
   874 
   874     bool isInRoom = players->isFlagSet(nick, PlayersListModel::InRoom);
   875     acFollow->setVisible(!isSelf);
   875 
       
   876     acFollow->setVisible(!isSelf && isInRoom);
   876 
   877 
   877     // update context menu labels according to possible action
   878     // update context menu labels according to possible action
   878     if(players->isFlagSet(nick, PlayersListModel::Ignore))
   879     if(players->isFlagSet(nick, PlayersListModel::Ignore))
   879     {
   880     {
   880         acIgnore->setText(QAction::tr("Unignore"));
   881         acIgnore->setText(QAction::tr("Unignore"));