Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
3b0a8c2a
Commit
3b0a8c2a
authored
Feb 08, 2015
by
Matt Lowe
Browse files
Updated
+ Added room name + takes you to kicked game tab
parent
7de11030
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_game.cpp
View file @
3b0a8c2a
...
...
@@ -1081,11 +1081,15 @@ void TabGame::eventLeave(const Event_Leave & /*event*/, int eventPlayerId, const
void
TabGame
::
eventKicked
(
const
Event_Kicked
&
/*event*/
,
int
/*eventPlayerId*/
,
const
GameEventContext
&
/*context*/
)
{
closeGame
();
tabSupervisor
->
setCurrentIndex
(
tabSupervisor
->
indexOf
(
this
));
messageLog
->
logKicked
();
QMessageBox
msgBox
(
this
);
msgBox
.
setWindowTitle
(
getTabText
());
msgBox
.
setText
(
tr
(
"You have been kicked out of the game."
));
msgBox
.
setIcon
(
QMessageBox
::
Information
);
msgBox
.
exec
();
emit
userEvent
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment