Bug 182718 - allow to set a default game type
Summary: allow to set a default game type
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-01 14:22 UTC by Stefano Crocco
Modified: 2009-03-02 03:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2009-02-01 14:22:39 UTC
Version:           3.1 (using 4.2.61 (KDE 4.2.61 (KDE 4.3 >= 20090127)), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.25-gentoo-r5

Because of bug 65506, now every time I start KPatience, I need to choose the type of game to start. While this is good for people exploring the different games included in the program, in my opinion it becomes annoying for people who likes to always play the same game: with the old behaviour, they only have to start the application and had a new game ready; nowadays, they need to remember the name of their favourite game and click on it before being able to play it.

Isn't it possible to have a way to set the default game, so that the "New" menu entry, if used before choosing a game, would start a new game?

If this can't be done, it would surely be possible to add a command line option to start a game of a particular kind. Using this command line option would have the same effects as clicking on a game type at the beginning
Comment 1 Parker Coates 2009-02-23 15:44:41 UTC
SVN commit 930456 by coates:

Added new "--gametype" command line switch to skip the game selection screen and start a particular type of game.

CCBUG:182718

 M  +43 -2     main.cpp  
 M  +5 -2      pwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930456
Comment 2 Parker Coates 2009-03-02 03:33:20 UTC
SVN commit 933985 by coates:

Further refinements to the new state saving functionality.

If the game is won, save an empty game containing only a game ID, so that we can start a game of that type when KPat is restarted.

BUG:182718

 M  +8 -0      dealer.cpp  
 M  +25 -14    pwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933985