From kde-commits Sat Jul 31 22:47:40 2004 From: Stefan Bogner Date: Sat, 31 Jul 2004 22:47:40 +0000 To: kde-commits Subject: kdeextragear-1/amarok/src Message-Id: <20040731224740.B8CDA9A39 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109131408904148 CVS commit by bochi: never allow negative volume percentage. scrolling down the mousewheel in the playerwindow or on the trayicon resulted in % < 0. M +1 -0 enginecontroller.cpp 1.49 --- kdeextragear-1/amarok/src/enginecontroller.cpp #1.48:1.49 @@ -268,4 +268,5 @@ int EngineController::setVolume( int per percent = uint(percent); if( percent > 100 ) percent = 100; + if( percent < 0 ) percent = 0; if( (uint)percent != m_pEngine->volume() )