]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
run external browser by ¨system¨ instead of QProcess.
authorptv <ptv@opencascade.com>
Fri, 1 Dec 2006 10:05:20 +0000 (10:05 +0000)
committerptv <ptv@opencascade.com>
Fri, 1 Dec 2006 10:05:20 +0000 (10:05 +0000)
src/LightApp/LightApp_Application.cxx

index 35d88ac19f4fdeae006f1440d543a2dee3518ebc..213cb9a7c6825a24cf89a064368eb8dacfb510a4 100644 (file)
@@ -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) );