This commit is contained in:
doitux
2011-01-03 22:23:58 +00:00
parent 852e3dc922
commit 3b30a535a5
+7 -6
View File
@@ -105,18 +105,21 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
int j=0; int j=0;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) {
if(myId == j && myW->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).isGuest) { if(myId == j) {
if(myW->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).isGuest) {
action_IgnorePlayer->setDisabled(true); action_IgnorePlayer->setDisabled(true);
} }
j++;
}
if(myW->getSession()->getGameType() == Session::GAME_TYPE_INTERNET && !(QString::fromUtf8((*it_c)->getMyAvatar().c_str()).isEmpty()) ) { if(myW->getSession()->getGameType() == Session::GAME_TYPE_INTERNET && !((*it_c)->getMyAvatar().empty()) ) {
action_ReportBadAvatar->setVisible(TRUE); action_ReportBadAvatar->setVisible(TRUE);
} }
else { else {
action_ReportBadAvatar->setVisible(FALSE); action_ReportBadAvatar->setVisible(FALSE);
} }
}
j++;
}
int i=0; int i=0;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) {
@@ -127,8 +130,6 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
i++; i++;
} }
} }
} }
} }