Skip to content

Commit 59a45d2

Browse files
author
gsherman
committed
Quote the command to run the mapserver exporter to deal with paths containing spaces on Windows.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6253 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 028db9b commit 59a45d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/qgisapp.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3239,6 +3239,10 @@ void QgisApp::exportMapServer()
32393239
//{
32403240
QString myMSExportPath = QgsApplication::msexportAppPath();
32413241
QProcess *process = new QProcess;
3242+
#ifdef WIN32
3243+
// quote the application path on windows
3244+
myMSExportPath = QString("\"") + myMSExportPath + QString("\"");
3245+
#endif
32423246
process->start(myMSExportPath);
32433247

32443248
// Delete this object if the process terminates

0 commit comments

Comments
 (0)