GNOME Bugzilla – Bug 758775
Disable selecting pieces after the game is over
Last modified: 2015-12-05 13:23:44 UTC
Created attachment 316441 [details] Player has resigned, pieces allowed to be selected See attached screenshot.
Created attachment 316442 [details] Game is over, pieces allowed to be selected
Created attachment 316444 [details] [review] Disable selecting pieces after game is over
Review of attachment 316444 [details] [review]: Wrong patch, I think :)
Created attachment 316463 [details] [review] Disable selecting pieces after game is over Uploading the right patch this time :P
Review of attachment 316463 [details] [review]: Thanks, good after nits: ::: src/chess-view.vala @@ +277,3 @@ return false; + // If the game is over, disable selection of pieces + if(scene.game.result != ChessResult.IN_PROGRESS) OK, but watch your code style here! Leave one blank line above the comment, and one blank space between the if and the opening parentheses.
Fixed and pushed to master. Time to update the style-checker :P To ssh://ssareen@git.gnome.org/git/gnome-chess 7e06fa3..51b6321 master -> master