[Kde-games-devel] Review Request 114674: Fix bug 310411: Crash when selecting 'Game>Restart puzzle'
Alexander Schuch
aschuch247 at gmail.com
Sat Dec 28 02:54:25 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114674/#review46243
-----------------------------------------------------------
Ship it!
Ship It!
- Alexander Schuch
On Dec. 26, 2013, 9:49 p.m., Ian Wadham wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114674/
> -----------------------------------------------------------
>
> (Updated Dec. 26, 2013, 9:49 p.m.)
>
>
> Review request for KDE Games.
>
>
> Bugs: 310411
> http://bugs.kde.org/show_bug.cgi?id=310411
>
>
> Repository: palapeli
>
>
> Description
> -------
>
> The problem occurs because no puzzle has been selected and loaded when Palapeli starts, therefore there is no puzzle to "restart".
>
> The solution is to enable 'Game>Restart puzzle' only when a puzzle has been selected and loaded and is being solved (the action makes no sense in Palapeli's Collection mode), also to return immediately from Palapeli::Scene:restartPuzzle() if, for any other reason, no puzzle has been successfully loaded.
>
>
> Diffs
> -----
>
> src/engine/scene.cpp 8be0925
> src/window/mainwindow.cpp e3305fb
>
> Diff: https://git.reviewboard.kde.org/r/114674/diff/
>
>
> Testing
> -------
>
> Tried 'Game>Restart puzzle' from Collection mode (no action) and from Puzzle mode (puzzle pieces are dismantled and re-shuffled, as expected).
>
>
> Thanks,
>
> Ian Wadham
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20131228/599b85c8/attachment.html>
More information about the kde-games-devel
mailing list