[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src
From:       Stefan Bogner <bochi () online ! ms>
Date:       2004-07-31 22:47:40
Message-ID: 20040731224740.B8CDA9A39 () office ! kde ! org
[Download RAW message or body]

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() )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic