Bug 339038 - Starting a new game by changing the difficulty leads to an unplayable game
Summary: Starting a new game by changing the difficulty leads to an unplayable game
Status: RESOLVED FIXED
Alias: None
Product: kblocks
Classification: Applications
Component: general (show other bugs)
Version: 0.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Zhongjie Cai
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-12 19:40 UTC by Martin Walch
Modified: 2020-04-27 17:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2014-09-12 19:40:59 UTC
When starting up kblocks and only changing the difficulty via >Settings >Difficulty, without explicitely starting a game, a new game automatically starts (you need to actually change the difficulty, e.g. from "Medium" to "Easy"). However, the keyboard input for that game is ignored.

Note: When using a kblocks version that is still affected by bug #320286, you need to change the difficulty two times to trigger the bug.

Reproducible: Always
Comment 1 Julian Helfferich 2016-02-28 21:00:10 UTC
Git commit 145820a70ce12409873e9326c8c232a790c76081 by Julian Helfferich.
Committed on 28/02/2016 at 19:46.
Pushed by helfferich into branch 'Applications/15.12'.

Fix unplayable game when changing difficulty

Previously, changing the difficulty before the first game was started
by selecting "Single Game" or "Human vs. AI" started an unplayable
game.

Now, levelChanged() calls singleGame() or pveStepGame() instead of
startGame(). These functions are also called when selecting "Single
Game" or "Human vs. AI", respectively, and correctly connect keyboard
events to the game.
REVIEW: 127171

M  +5    -1    KBlocksWin.cpp

http://commits.kde.org/kblocks/145820a70ce12409873e9326c8c232a790c76081