From 0cb70ee620397c652258f67dc9c285e341bdace0 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Sat, 22 Mar 2008 07:58:13 +0000 Subject: [PATCH] yet another small change to get rid of names with spaces in the middle. Correctly labeled idtf files --- src/meshlabplugins/u3d_io/u3d_io.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meshlabplugins/u3d_io/u3d_io.cpp b/src/meshlabplugins/u3d_io/u3d_io.cpp index aa9ba0832..746be7c70 100644 --- a/src/meshlabplugins/u3d_io/u3d_io.cpp +++ b/src/meshlabplugins/u3d_io/u3d_io.cpp @@ -82,7 +82,8 @@ bool U3DIOPlugin::save(const QString &formatName, const QString &fileName, MeshM converterPath += "/IDTFConverter.exe"; converterCommandLine = converterPath; #elif defined(Q_OS_MAC) - converterCommandLine = converterPath +"/IDTFConverter.sh "+converterPath; + converterPath.replace(QString(" "),QString("\\ ")); + converterCommandLine = "\""+converterPath +"/IDTFConverter.sh"+ "\" \"" + converterPath+"\""; converterPath = converterPath +"/IDTFConverter.sh"; #endif if (settings.contains("U3D/converter")) @@ -124,7 +125,7 @@ QList U3DIOPlugin::exportFormats() const { QList formatList; formatList << Format("U3D File Format" ,tr("U3D")); - formatList << Format("U3D File Format" ,tr("IDTF")); + formatList << Format("IDTF File Format" ,tr("IDTF")); return formatList; }