Disable some usercontextmenu actions if the user is offline; fix #234

This commit is contained in:
Fabio Bas 2014-07-27 00:26:12 +02:00
parent ea897ee2ef
commit fe12f71b93
4 changed files with 9 additions and 7 deletions

View file

@ -178,5 +178,5 @@ void PlayerListWidget::showContextMenu(const QPoint &pos, const QModelIndex &ind
int playerId = index.sibling(index.row(), 4).data(Qt::UserRole + 1).toInt();
UserLevelFlags userLevel(index.sibling(index.row(), 3).data(Qt::UserRole).toInt());
userContextMenu->showContextMenu(pos, userName, userLevel, playerId);
userContextMenu->showContextMenu(pos, userName, userLevel, true, playerId);
}