Summary: | pressing pause button before starting game cause bad pause button behaviour | ||
---|---|---|---|
Product: | [Applications] kbounce | Reporter: | Albert Astals Cid <aacid> |
Component: | general | Assignee: | schimmi |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.5 | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Corrects the bug 53119 |
Description
Albert Astals Cid
2003-01-17 21:02:13 UTC
Created attachment 783 [details] Corrects the bug 53119 In this .tar.bz2 i include the two diffs i have made to kbounce.h and kbounce.cpp to correct the bug 53119 Subject: kdegames/kbounce CVS commit by andreas: - patch by Albert Astals Cid <tsdgeos@terra.es> to fix #53119 CCMAIL: 53119-done@bugs.kde.org M +4 -1 kbounce.cpp 1.8 M +2 -0 kbounce.h 1.3 --- kdegames/kbounce/kbounce.cpp #1.7:1.8 @@ -122,5 +122,5 @@ void KJezzball::initXMLUI() KStdGameAction::quit( this, SLOT(close()), actionCollection() ); KStdGameAction::highscores(this, SLOT(showHighscore()), actionCollection() ); - KStdGameAction::pause(this, SLOT(pauseGame()), actionCollection()); + m_pauseButton = KStdGameAction::pause(this, SLOT(pauseGame()), actionCollection()); KStdGameAction::end(this, SLOT(closeGame()), actionCollection()); @@ -142,4 +142,7 @@ void KJezzball::newGame() if ( m_state==Idle ) { + // untoggles the pause button in case it was toggled + m_pauseButton->setChecked(false); + // update displays m_game.level = 1; --- kdegames/kbounce/kbounce.h #1.2:1.3 @@ -25,4 +25,5 @@ class JezzGame; class QLCDNumber; class QGridLayout; +class KToggleAction; class KJezzball : public KMainWindow @@ -71,4 +72,5 @@ protected: QLCDNumber *m_percentLCD; QLCDNumber *m_timeLCD; + KToggleAction *m_pauseButton; QTimer *m_timer; |