don't show 'follow' entry for players that are in lobby
authorsheepluva
Sat, 30 Nov 2013 14:05:22 +0100
changeset 9726 dfdde45181ec
parent 9725 68b5d87cfdb0
child 9727 e89ed65f62da
don't show 'follow' entry for players that are in lobby
QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sat Nov 30 13:42:14 2013 +0100
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sat Nov 30 14:05:22 2013 +0100
@@ -871,8 +871,9 @@
         return;
 
     bool isSelf = (nick == m_userNick);
+    bool isInRoom = players->isFlagSet(nick, PlayersListModel::InRoom);
 
-    acFollow->setVisible(!isSelf);
+    acFollow->setVisible(!isSelf && isInRoom);
 
     // update context menu labels according to possible action
     if(players->isFlagSet(nick, PlayersListModel::Ignore))