Skip to content

Commit b47dfe5

Browse files
author
jef
committed
fix #2227
git-svn-id: http://svn.osgeo.org/qgis/trunk@15784 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0b4ddc5 commit b47dfe5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/plugins/gps_importer/qgsbabelformat.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,14 @@ QStringList QgsSimpleBabelFormat::importCommand( const QString& babel,
106106
const QString& output )const
107107
{
108108
QStringList args;
109-
args << babel << featuretype << "-i" << mFormat << "-o" << "gpx" << input << output;
109+
args
110+
<< QString( "\"%1\"" ).arg( babel )
111+
<< featuretype
112+
<< "-i"
113+
<< mFormat
114+
<< "-o" << "gpx"
115+
<< QString( "\"%1\"" ).arg( input )
116+
<< QString( "\"%1\"" ).arg( output );
110117
return args;
111118
}
112119

src/plugins/gps_importer/qgsgpsplugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ void QgsGPSPlugin::importGPSFile( QString inputFileName, QgsBabelFormat* importe
280280
return;
281281
}
282282

283+
babelProcess.waitForFinished();
284+
283285
// did we get any data?
284-
if ( babelProcess.exitStatus() != 0 )
286+
if ( babelProcess.exitCode() != 0 )
285287
{
286288
QString babelError( babelProcess.readAllStandardError() );
287289
QString errorMsg( tr( "Could not import data from %1!\n\n" )

0 commit comments

Comments
 (0)