From: ptv Date: Fri, 1 Dec 2006 10:05:20 +0000 (+0000) Subject: run external browser by ¨system¨ instead of QProcess. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dcc59ee2e60a13af319b37cd24b55328b343ef51;p=modules%2Fgui.git run external browser by ¨system¨ instead of QProcess. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 35d88ac19..213cb9a7c 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -931,12 +931,12 @@ public: { aCommand.sprintf("%s %s %s",myApp.latin1(),myParams.latin1(),myHelpFile.latin1()); - QProcess* proc = new QProcess(); - proc->addArgument( aCommand ); - //myStatus = system(aCommand); + //QProcess* proc = new QProcess(); + //proc->addArgument( aCommand ); + myStatus = system(aCommand); - //if(myStatus != 0) - if(!proc->start()) + if(myStatus != 0) + //if(!proc->start()) { QCustomEvent* ce2000 = new QCustomEvent( 2000 ); QString* msg = new QString( QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(myApp).arg(myHelpFile) );