mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
delete overloaded signal in PendingCommand (#5477)
* remove overloaded signal since no one was using it * remove usages of qOverload * turns out new slot/signal syntax can ignore extra params
This commit is contained in:
parent
3a740f0bde
commit
2d02955f8b
11 changed files with 21 additions and 39 deletions
|
|
@ -194,9 +194,7 @@ void GameSelector::actCreate()
|
|||
updateTitle();
|
||||
}
|
||||
|
||||
void GameSelector::checkResponse(const Response &response,
|
||||
const CommandContainer & /* commandContainer */,
|
||||
const QVariant & /* extraData */)
|
||||
void GameSelector::checkResponse(const Response &response)
|
||||
{
|
||||
// NB: We re-enable buttons for the currently selected game, which may not
|
||||
// be the same game as the one for which we are processing a response.
|
||||
|
|
@ -274,8 +272,7 @@ void GameSelector::actJoin()
|
|||
}
|
||||
|
||||
PendingCommand *pend = r->prepareRoomCommand(cmd);
|
||||
connect(pend, qOverload<const Response &, const CommandContainer &, const QVariant &>(&PendingCommand::finished),
|
||||
this, &GameSelector::checkResponse);
|
||||
connect(pend, &PendingCommand::finished, this, &GameSelector::checkResponse);
|
||||
r->sendRoomCommand(pend);
|
||||
|
||||
disableButtons();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue