Bug 319522

Summary: Option to restart current game
Product: [Applications] ksudoku Reporter: Maarten Bezemer <maarten.bezemer>
Component: generalAssignee: Ian Wadham <iandw.au>
Status: RESOLVED FIXED    
Severity: wishlist CC: codestruct, kde-games-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Maarten Bezemer 2013-05-08 12:51:58 UTC
It would be nice to have an menu option to restart the current game.

It is currently possible to manually clear all cells, but this can be quite an amount of work on large(r) boards.

Reproducible: Always
Comment 1 Ian Wadham 2013-05-08 23:15:59 UTC
I'll have a look at this, but as a workaround you can clear the board quite quickly by holding down the keys for Undo (e.g. CTRL-Z) and taking advantage of keyboard repeat.
Comment 2 Gregor Mi 2018-05-15 20:35:10 UTC
It is being work on that here: https://phabricator.kde.org/D12907
Comment 3 Gregor Mi 2018-05-30 09:10:23 UTC
Git commit 1dd6e4bd2e5e77898608b6077297793413cb9291 by Gregor Mi.
Committed on 30/05/2018 at 09:10.
Pushed by gregormi into branch 'master'.

Implement wish 319522: Option to restart current game

Summary:

- Add a new action "Restart Game" between "New" and "Print" to the menu and toolbar
- "Restart Game" asks for confirmation if game is not finished yet
-  The "Restart Game" button is only active if a game is running

Related changes:
- Change the confirmation text that appears when the user clicks the "New" button to "New Game" instead of the confusing "Restart Game"
- The "New" and "Print" buttons are now only available if a game is running (on the welcome screen clicking "New" had no effect, clicking "Print" showed a message box that there is nothing to print)

Reviewers: #kde_games, aacid

Reviewed By: aacid

Subscribers: aacid, kde-games-devel

Differential Revision: https://phabricator.kde.org/D12907

M  +32   -8    src/gui/ksudoku.cpp
M  +8    -7    src/gui/ksudoku.h
M  +9    -0    src/gui/ksudokugame.cpp
M  +5    -0    src/gui/ksudokugame.h
M  +3    -1    src/gui/ksudokuui.rc

https://commits.kde.org/ksudoku/1dd6e4bd2e5e77898608b6077297793413cb9291