| Summary: | Score from previous game not cleared when starting new game in Kblocks 0.3 | ||
|---|---|---|---|
| Product: | [Applications] kblocks | Reporter: | Jesper Goll <jesper> |
| Component: | general | Assignee: | Zhongjie Cai <squall.leonhart.cai> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde-games-bugs-null, schwarzer |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Unlisted Binaries | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Jesper Goll
2011-03-15 21:23:06 UTC
Confirmed. After another short look I think the following will fix this. Again, I cannot compile at the moment, so could anyone please test it?
I used the placeholders so that no new string will be introduced for translation (in case it works ;)).
Index: KBlocksWin.cpp
===================================================================
--- KBlocksWin.cpp (revision 1225051)
+++ KBlocksWin.cpp (working copy)
@@ -127,6 +127,8 @@
stopGame();
startGame();
}
+
+ statusBar()->changeItem( i18n("Points: %1 - Lines: %2 - Level: %3", 0, 0, 0), 0 );
}
void KBlocksWin::stopGame()
If anyone could test this, I believe it'll do. Ok, tested on another box and it works. :) SVN commit 1225073 by schwarzer: Fix score display not being updated on new game. BUG: 268585 M +2 -0 KBlocksWin.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1225073 SVN commit 1225075 by schwarzer: Fix score display not being updated on new game. BUG: 268585 M +2 -0 KBlocksWin.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1225075 |