Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Bovo
Commits
02ad3cab
Commit
02ad3cab
authored
Oct 03, 2021
by
Tom on the web
🚴🏿
Committed by
Albert Astals Cid
Oct 09, 2021
Browse files
Avoid warning about starting a new game when none are running
parent
fadd479c
Pipeline
#87198
passed with stage
in 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
gui/mainwindow.cc
View file @
02ad3cab
...
...
@@ -277,6 +277,8 @@ void MainWindow::slotNewGame() {
m_demoMode
=
true
;
slotNewDemo
();
}
else
{
Kg
::
difficulty
()
->
setGameRunning
(
true
);
Dimension
dimension
(
NUMCOLS
,
NUMCOLS
);
if
(
m_scene
==
0
)
{
m_scene
=
new
Scene
(
m_theme
,
m_animate
);
...
...
@@ -341,6 +343,7 @@ void MainWindow::slotNewDemo() {
this
,
&
MainWindow
::
slotNewDemoWait
);
statusBar
()
->
showMessage
(
i18n
(
"Start a new Game to play"
));
m_game
->
start
();
Kg
::
difficulty
()
->
setGameRunning
(
false
);
}
void
MainWindow
::
slotNewDemoWait
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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