From fa857d5e51959661dd8dcb20068f335b2dbf531d Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 6 Mar 2008 10:58:40 +0000 Subject: [PATCH] corrected creation of the command line under win --- wrap/io_trimesh/export_u3d.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wrap/io_trimesh/export_u3d.h b/wrap/io_trimesh/export_u3d.h index 37dc96c3..74698c2e 100644 --- a/wrap/io_trimesh/export_u3d.h +++ b/wrap/io_trimesh/export_u3d.h @@ -7,6 +7,7 @@ #include #include #include + #include #include "export_idtf.h" #include @@ -107,12 +108,13 @@ private: { QProcess p; QString convstring = par._converter_loc; - convstring = convstring + " -en1 -input " + par._input_file + " -output " + par._output_file; + convstring = "\""+convstring + "\" -en 1 -input \"" + par._input_file + "\" -output \"" + par._output_file +"\""; qDebug("Starting converter %s", qPrintable(convstring)); p.setProcessChannelMode(QProcess::MergedChannels); p.start(convstring); //wait until the task has been completed bool t = p.waitForFinished(-1); + if(!t) QMessageBox::warning(0, QString("Saving Error"), QString("Failed conversion executable '%1'").arg(convstring)); p.close(); return (int) t; }