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

List:       kde-commits
Subject:    kdeartwork/kscreensaver/kxsconfig
From:       George Staikos <staikos () kde ! org>
Date:       2003-05-28 2:56:12
[Download RAW message or body]

CVS commit by staikos: 

check dynamic_cast for 0L


  M +4 -1      kxsconfig.cpp   1.22


--- kdeartwork/kscreensaver/kxsconfig/kxsconfig.cpp  #1.21:1.22
@@ -155,5 +155,8 @@ bool KXSConfigDialog::create()
         ++it;
         item->read( config );
-        connect( dynamic_cast<QWidget*>(item), SIGNAL(changed()), SLOT(slotChanged()) );
+        QWidget *i = dynamic_cast<QWidget*>(item);
+        if (i) {
+            connect( i, SIGNAL(changed()), SLOT(slotChanged()) );
+        }
     }
 


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

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