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

List:       kde-commits
Subject:    kdenonbeta/kwintv3/qtvision
From:       George Staikos <staikos () kde ! org>
Date:       2003-07-28 16:40:49
[Download RAW message or body]

CVS commit by staikos: 

don't allow the volume to go above 100.  Pointed out by Dirk Ziegelmeier.


  M +1 -1      qtvision.cpp   1.127


--- kdenonbeta/kwintv3/qtvision/qtvision.cpp  #1.126:1.127
@@ -723,5 +723,5 @@ void QtVision::setMuteVolume (bool mute)
 
 void QtVision::volumeUp() {
-    setVolume(_am->volumeLeft()+4, _am->volumeRight()+4);
+    setVolume(QMIN(_am->volumeLeft()+4, 100), QMIN(_am->volumeRight()+4, 100));
 }
 


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

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