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
702f9491
Commit
702f9491
authored
Aug 15, 2015
by
woogerboy21
Browse files
Updated response block to look better
parent
3e94c9d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_server.cpp
View file @
702f9491
...
...
@@ -138,13 +138,12 @@ void RoomSelector::joinClicked()
void
RoomSelector
::
joinFinished
(
const
Response
&
r
,
const
CommandContainer
&
/*commandContainer*/
,
const
QVariant
&
extraData
)
{
if
(
r
.
response_code
()
!=
Response
::
RespOk
)
{
switch
(
r
.
response_code
())
{
case
Response
::
RespUserLevelTooLow
:
QMessageBox
::
critical
(
this
,
tr
(
"Error"
),
tr
(
"You do not have the proper permission to join this room."
));
return
;
default:
QMessageBox
::
critical
(
this
,
tr
(
"Error"
),
tr
(
"Failed to join the room due to an unknown error."
));
return
;
}
switch
(
r
.
response_code
())
{
case
Response
::
RespOk
:
break
;
case
Response
::
RespUserLevelTooLow
:
QMessageBox
::
critical
(
this
,
tr
(
"Error"
),
tr
(
"You do not have the proper permission to join this room."
));
return
;
default:
QMessageBox
::
critical
(
this
,
tr
(
"Error"
),
tr
(
"Failed to join the room due to an unknown error."
));
return
;
}
const
Response_JoinRoom
&
resp
=
r
.
GetExtension
(
Response_JoinRoom
::
ext
);
...
...
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