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

List:       kde-commits
Subject:    kdelibs/arts/knotify
From:       Maks Orlovich <mo002j () mail ! rochester ! edu>
Date:       2003-03-31 16:33:02
[Download RAW message or body]

CVS commit by orlovich: 


Don't crash trying to play sounds if aRts connecting has been disabled in order
to protect from aRts-related crashes. (Is there a UI way to reverse that choice, BTW?)

(Neil, Carsten: Please review)

CCMAIL: neil@qualityassistant.com
CCMAIL: carpdjih@mailbox.tu-berlin.de


  M +6 -0      knotify.cpp   1.75


--- kdelibs/arts/knotify/knotify.cpp  #1.74:1.75
@@ -368,4 +368,10 @@ bool KNotify::notifyBySound( const QStri
         return false;
     }
+    
+    //If we disabled using aRts, just return, 
+    //(If we don't, we'll blow up accessing the null soundServer)
+    if (!d->useArts)
+        return false;
+    
     bool external = d->useExternal && !d->externalPlayer.isEmpty();
     // get file name


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

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