exportxhtmldialog.cpp
changeset 408 c2a05fa925a1
parent 382 8b0ab4c0f767
child 412 8059b6aa74d7
     1.1 --- a/exportxhtmldialog.cpp	Thu Nov 23 16:18:26 2006 +0000
     1.2 +++ b/exportxhtmldialog.cpp	Fri Dec 08 20:18:56 2006 +0000
     1.3 @@ -386,17 +386,16 @@
     1.4  	spath.replace ("%f",fpath);
     1.5  	QStringList args=QStringList::split (' ',spath,false);
     1.6  		
     1.7 -	scriptProc->clearArguments();
     1.8 -	scriptProc->setArguments (args);	
     1.9 -	p.addOutput ("vym is executing: \n" + scriptProc->arguments().join(" ") );	
    1.10 -	if (!scriptProc->start() )
    1.11 +	p.addOutput ("vym is executing: \n" + spath+" "+args.join(" ") );	
    1.12 +	scriptProc->start (spath,args);
    1.13 +	if (!scriptProc->waitForStarted() )
    1.14  	{
    1.15  		QMessageBox::critical( 0, tr( "Critical Error" ),
    1.16  					   tr("Could not start %1").arg(spath) );
    1.17  	} else
    1.18  	{
    1.19  		scriptProc->waitFinished();
    1.20 -		if (!scriptProc->normalExit() )
    1.21 +		if (scriptProc->exitStatus()!=QProcess::NormalExit )
    1.22  			QMessageBox::critical( 0, tr( "Critical Error" ),
    1.23  			   tr("%1 didn't exit normally").arg(spath) +
    1.24  			   scriptProc->getErrout() );