change stayontable-status handling from gui to engine code
This commit is contained in:
@@ -3768,17 +3768,11 @@ void gameTableImpl::restoreGameTableGeometry()
|
||||
}
|
||||
}
|
||||
|
||||
void gameTableImpl::netClientPlayerLeft(unsigned playerId)
|
||||
void gameTableImpl::netClientPlayerLeft(unsigned /*playerId*/)
|
||||
{
|
||||
|
||||
if (myStartWindow->getSession()->getCurrentGame() && myStartWindow->getSession()->isNetworkClientRunning()) {
|
||||
|
||||
boost::shared_ptr<PlayerInterface> tmpPlayer = myStartWindow->getSession()->getCurrentGame()->getPlayerByUniqueId(playerId);
|
||||
if (tmpPlayer.get()) {
|
||||
tmpPlayer->setMyStayOnTableStatus(0);
|
||||
refreshPlayerAvatar();
|
||||
refreshPlayerName();
|
||||
}
|
||||
refreshPlayerAvatar();
|
||||
refreshPlayerName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user