mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Rename, fix returns.
Took 19 minutes
This commit is contained in:
parent
2bafc8dfe7
commit
ba59a6e600
2 changed files with 9 additions and 7 deletions
|
|
@ -37,7 +37,7 @@ DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes,
|
||||||
hideIgnoredUserGames = new QCheckBox(tr("Hide 'ignored user' games"));
|
hideIgnoredUserGames = new QCheckBox(tr("Hide 'ignored user' games"));
|
||||||
hideIgnoredUserGames->setChecked(gamesProxyModel->getHideIgnoredUserGames());
|
hideIgnoredUserGames->setChecked(gamesProxyModel->getHideIgnoredUserGames());
|
||||||
|
|
||||||
hideNotBuddyCreatedGames = new QCheckBox(tr("Hide games not created by buddy"));
|
hideNotBuddyCreatedGames = new QCheckBox(tr("Hide games not created by buddies"));
|
||||||
hideNotBuddyCreatedGames->setChecked(gamesProxyModel->getHideNotBuddyCreatedGames());
|
hideNotBuddyCreatedGames->setChecked(gamesProxyModel->getHideNotBuddyCreatedGames());
|
||||||
|
|
||||||
hideOpenDecklistGames = new QCheckBox(tr("Hide games with forced open decklists"));
|
hideOpenDecklistGames = new QCheckBox(tr("Hide games with forced open decklists"));
|
||||||
|
|
|
||||||
|
|
@ -261,28 +261,30 @@ void GameSelector::checkResponse(const Response &response)
|
||||||
|
|
||||||
void GameSelector::actJoin()
|
void GameSelector::actJoin()
|
||||||
{
|
{
|
||||||
return joinGame();
|
joinGame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameSelector::actJoinAsJudge()
|
void GameSelector::actJoinAsJudge()
|
||||||
{
|
{
|
||||||
if (!(tabSupervisor->getUserInfo()->user_level() & ServerInfo_User::IsJudge)) {
|
if (!(tabSupervisor->getUserInfo()->user_level() & ServerInfo_User::IsJudge)) {
|
||||||
return joinGame();
|
joinGame();
|
||||||
|
} else {
|
||||||
|
joinGame(false, true);
|
||||||
}
|
}
|
||||||
return joinGame(false, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameSelector::actJoinAsSpectator()
|
void GameSelector::actJoinAsSpectator()
|
||||||
{
|
{
|
||||||
return joinGame(true);
|
joinGame(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameSelector::actJoinAsJudgeSpectator()
|
void GameSelector::actJoinAsJudgeSpectator()
|
||||||
{
|
{
|
||||||
if (!(tabSupervisor->getUserInfo()->user_level() & ServerInfo_User::IsJudge)) {
|
if (!(tabSupervisor->getUserInfo()->user_level() & ServerInfo_User::IsJudge)) {
|
||||||
return joinGame(true);
|
joinGame(true);
|
||||||
|
} else {
|
||||||
|
joinGame(true, true);
|
||||||
}
|
}
|
||||||
return joinGame(true, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameSelector::customContextMenu(const QPoint &point)
|
void GameSelector::customContextMenu(const QPoint &point)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue