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
a84418bb
Commit
a84418bb
authored
Apr 02, 2015
by
poixen
Browse files
Merge pull request #902 from poixen/default_one_player
Default to one player
parents
bc8d9427
986eab4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_main.cpp
View file @
a84418bb
...
@@ -135,7 +135,7 @@ void MainWindow::actDisconnect()
...
@@ -135,7 +135,7 @@ void MainWindow::actDisconnect()
void
MainWindow
::
actSinglePlayer
()
void
MainWindow
::
actSinglePlayer
()
{
{
bool
ok
;
bool
ok
;
int
numberPlayers
=
QInputDialog
::
getInt
(
this
,
tr
(
"Number of players"
),
tr
(
"Please enter the number of players."
),
2
,
1
,
8
,
1
,
&
ok
);
int
numberPlayers
=
QInputDialog
::
getInt
(
this
,
tr
(
"Number of players"
),
tr
(
"Please enter the number of players."
),
1
,
1
,
8
,
1
,
&
ok
);
if
(
!
ok
)
if
(
!
ok
)
return
;
return
;
...
...
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