Bug 161308

Summary: Number of games played increments both when a game is started and when a game ends
Product: [Applications] lskat Reporter: Scott Kitterman <kde>
Component: generalAssignee: martin
Status: RESOLVED FIXED    
Severity: normal CC: grundleborg
Priority: NOR    
Version: 1.40   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch for Fixing the Number of Games

Description Scott Kitterman 2008-04-26 17:41:49 UTC
Version:            (using KDE 4.0.3)
Installed from:    Ubuntu Packages
OS:                Linux

Each time I start a game of lskat the counter for how many games have been played increments (e.g. Games: 3/10).  Then the counter increments again when the game is finished.  As a result, I currently get:

Alice: Games: 3/10
Bob: Games: 1/10

What's actually been done is:

1 game started, not finished
4 games played completely
1 game in progress

The number of games played should increment when a game is started or when it's finished, but not both.
Comment 1 Scott Kitterman 2008-04-26 17:42:44 UTC
Version is 1.40 from KDE 4.0.3.
Comment 2 George Goldberg 2008-04-29 03:38:39 UTC
I can reproduce this in svn trunk r801873.
Comment 3 Raja Shekhar Alli 2008-08-01 23:23:52 UTC
Created attachment 26557 [details]
Patch for Fixing the Number of Games

This patch fixes the bug. Now the number of games is incremented only when a
game is started.
Comment 4 Scott Kitterman 2009-03-02 04:21:22 UTC
I can confirm it's fixed on 4.2.0.