[Bug 69047] kdevelop crash after selecting php invocation method

Jens Dagerbo jens.dagerbo at swipnet.se
Wed Nov 26 11:28:08 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=69047     
jens.dagerbo at swipnet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo at swipnet.se  2003-11-26 11:12 -------
Subject: kdevelop/languages/php

CVS commit by dagerbo: 

Avoid crashing when the passed KIO::Job is 0 
 
CCMAIL: 69047-done at bugs.kde.org 


  M +2 -2      phpsupportpart.cpp   1.52


--- kdevelop/languages/php/phpsupportpart.cpp  #1.51:1.52
@@ -263,6 +263,6 @@ void PHPSupportPart::executeOnWebserver(
 
 void PHPSupportPart::slotWebJobStarted(KIO::Job* job){
+  if (job && job->className() == QString("KIO::TransferJob")){
   kdDebug(9018) << endl << "job started" << job->progressId();
-  if (job->className() == QString("KIO::TransferJob")){
     KIO::TransferJob *tjob = static_cast<KIO::TransferJob*>(job);
     connect(tjob,  SIGNAL(data(KIO::Job*, const QByteArray&)),




More information about the KDevelop-devel mailing list