Solitaire: Stop timer if new game animation is running

Starting a new game before the animation had finished caused a crash
since it never stopped the timer before starting a new one.

Fixes #7222
This commit is contained in:
Marcus Nilsson 2021-05-18 14:59:49 +02:00 committed by Andreas Kling
parent 3ee092cd0c
commit 198a4e2a3c
Notes: sideshowbarker 2024-07-19 17:27:31 +09:00

View file

@ -96,6 +96,9 @@ void Game::stop_game_over_animation()
void Game::setup(Mode mode)
{
if (m_new_game_animation)
stop_timer();
stop_game_over_animation();
m_mode = mode;