[rkward-cvs] rkward/rkward/scriptbackends phpbackend.cpp,1.11,1.12

Thomas Friedrichsmeier tfry at users.sourceforge.net
Mon Mar 20 14:03:46 UTC 2006


Update of /cvsroot/rkward/rkward/rkward/scriptbackends
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4705/rkward/scriptbackends

Modified Files:
	phpbackend.cpp 
Log Message:
Ported old depends-statements

Index: phpbackend.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/scriptbackends/phpbackend.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** phpbackend.cpp	19 Mar 2006 16:41:26 -0000	1.11
--- phpbackend.cpp	20 Mar 2006 14:03:44 -0000	1.12
***************
*** 80,84 ****
  	RK_TRACE (PHP);
  
! 	if (php_process) php_process->kill ();
  	delete php_process;
  	php_process = 0;
--- 80,88 ----
  	RK_TRACE (PHP);
  
! 	disconnect ();
! 	if (php_process) {
! 		php_process->suspend ();
! 		php_process->detach ();
! 	}
  	delete php_process;
  	php_process = 0;
***************
*** 280,286 ****
  		} else if (request.startsWith ("PHP-Error")) {
  				QString error = request.remove ("PHP-Error");
  				destroy ();
  				KMessageBox::error (0, i18n ("The PHP-backend has reported an error\n(\"%1\")\nand has been shut down. This is most likely due to a bug in the plugin. But of course you may want to try to close and restart the plugin to see whether it works with different settings.").arg (error.stripWhiteSpace ()), i18n ("PHP-Error"));
- 				emit (haveError ());
  				return;
  		}
--- 284,290 ----
  		} else if (request.startsWith ("PHP-Error")) {
  				QString error = request.remove ("PHP-Error");
+ 				emit (haveError ());
  				destroy ();
  				KMessageBox::error (0, i18n ("The PHP-backend has reported an error\n(\"%1\")\nand has been shut down. This is most likely due to a bug in the plugin. But of course you may want to try to close and restart the plugin to see whether it works with different settings.").arg (error.stripWhiteSpace ()), i18n ("PHP-Error"));
  				return;
  		}





More information about the rkward-tracker mailing list