Bug 317908

Summary: Highscore dialog: default tab could be the current game difficulty
Product: [Frameworks and Libraries] libkdegames Reporter: AndrĂ© Marcelo Alvarenga <alvarenga>
Component: generalAssignee: kdegames bugs list <kde-games-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: abhinav210990, alex.jones.kde, das.awanish, egorov, kasper1371, kde-games-bugs, nitish.nc18, schwarzer, shiorahijukae
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description André Marcelo Alvarenga 2013-04-06 02:35:58 UTC
When you click on Game -> Show High Scores (CTRL + H), the highscore dialog is opened in 'Easy' tab.
This occurs even if you're playing in medium or hard difficulty.

Reproducible: Always

Actual Results:  
Easy game -> CTRL+H -> Easy tab
Medium game -> CTRL+H -> Easy tab
Hard game -> CTRL+H -> Easy tab

Expected Results:  
Easy game -> CTRL+H -> Easy tab
Medium game -> CTRL+H -> Medium tab
Hard game -> CTRL+H -> Hard tab
Comment 1 Roney Gomes 2013-04-08 15:24:11 UTC
Again, not a KBounce issue. libkdegames is the component that provides the highscores.

I'm not really sure whether we shall threat this behavior as a bug. just happens that the dialog defaults to the first tab, the "Easy" tab. I guess that, when people designed the high scores widget, it was intended to be a global overview of all high scores, not really related to the current game state.
Comment 2 Alex Jones 2013-09-14 12:31:11 UTC
Clean installation of KBounce, played a game in each difficulty. Each difficulty has it's own scoreboard which is correct and they are displayed along the side. However, as noted, if you are in medium difficulty mode, you should be taken to the medium difficulty scoreboard.
Comment 3 Nitish Chauhan 2015-12-22 07:52:24 UTC
i am interested in solving this bug.
Please guide me from where to start.
Thanks a lot.
Comment 4 Frederik Schwarzer 2015-12-22 16:14:19 UTC
Here is the repo: https://quickgit.kde.org/?p=libkdegames.git
The subdir "highscore" is of interest here.

For questions please subscribe to the mailing list and ask there.
https://mail.kde.org/mailman/listinfo/kde-games-devel
Comment 5 awanish 2016-01-27 19:12:58 UTC
hello i am new here and interested to solve this bug .
Please provide me the details to solve this
Comment 6 Frederik Schwarzer 2016-04-11 13:20:26 UTC
Git commit b84edcac03c4eb39891954b715f3a266ff2d299e by Frederik Schwarzer, on behalf of Dustin Steinack.
Committed on 11/04/2016 at 13:19.
Pushed by schwarzer into branch 'master'.

Set the default selected tab of the highscore dialog to the current game difficulty.

M  +5    -0    highscore/kscoredialog.cpp

http://commits.kde.org/libkdegames/b84edcac03c4eb39891954b715f3a266ff2d299e