--- a/QTfrontend/ui/widget/chatwidget.cpp Sat Nov 30 14:33:23 2013 +0100
+++ b/QTfrontend/ui/widget/chatwidget.cpp Sat Nov 30 14:36:41 2013 +0100
@@ -861,6 +861,8 @@
else
nick = m_clickedNick;
+ bool isOnline = (mil.size() > 0);
+
QSortFilterProxyModel * playersSortFilterModel = qobject_cast<QSortFilterProxyModel *>(chatNicks->model());
if(!playersSortFilterModel)
return;
@@ -875,6 +877,8 @@
acFollow->setVisible(!isSelf && isInRoom);
+ acInfo->setVisible(isOnline);
+
// update context menu labels according to possible action
if(players->isFlagSet(nick, PlayersListModel::Ignore))
{
@@ -902,7 +906,7 @@
if (m_isAdmin)
{
- acKick->setVisible(!isSelf);
+ acKick->setVisible(!isSelf && isOnline);
acBan->setVisible(!isSelf);
}