git-svn-id: http://svn.osgeo.org/qgis/trunk@15784 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2011-04-20 21:24:09 +00:00
parent 0b4ddc5c74
commit b47dfe5cdd
2 changed files with 11 additions and 2 deletions

View File

@ -106,7 +106,14 @@ QStringList QgsSimpleBabelFormat::importCommand( const QString& babel,
const QString& output )const
{
QStringList args;
args << babel << featuretype << "-i" << mFormat << "-o" << "gpx" << input << output;
args
<< QString( "\"%1\"" ).arg( babel )
<< featuretype
<< "-i"
<< mFormat
<< "-o" << "gpx"
<< QString( "\"%1\"" ).arg( input )
<< QString( "\"%1\"" ).arg( output );
return args;
}

View File

@ -280,8 +280,10 @@ void QgsGPSPlugin::importGPSFile( QString inputFileName, QgsBabelFormat* importe
return;
}
babelProcess.waitForFinished();
// did we get any data?
if ( babelProcess.exitStatus() != 0 )
if ( babelProcess.exitCode() != 0 )
{
QString babelError( babelProcess.readAllStandardError() );
QString errorMsg( tr( "Could not import data from %1!\n\n" )