--- a/QTfrontend/ui/widget/chatwidget.cpp Fri Oct 11 17:43:13 2013 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp Sat Jan 04 23:55:54 2014 +0400
@@ -861,6 +861,8 @@
else
nick = m_clickedNick;
+ bool isOnline = (mil.size() > 0);
+
QSortFilterProxyModel * playersSortFilterModel = qobject_cast<QSortFilterProxyModel *>(chatNicks->model());
if(!playersSortFilterModel)
return;
@@ -871,8 +873,11 @@
return;
bool isSelf = (nick == m_userNick);
+ bool isInRoom = players->isFlagSet(nick, PlayersListModel::InRoom);
- acFollow->setVisible(!isSelf);
+ acFollow->setVisible(!isSelf && isInRoom);
+
+ acInfo->setVisible(isOnline);
// update context menu labels according to possible action
if(players->isFlagSet(nick, PlayersListModel::Ignore))
@@ -901,7 +906,7 @@
if (m_isAdmin)
{
- acKick->setVisible(!isSelf);
+ acKick->setVisible(!isSelf && isOnline);
acBan->setVisible(!isSelf);
}