Skip to content
Permalink
Browse files
fix #2227
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15784 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 20, 2011
1 parent 636f7e3 commit 95e70f006ddb32a465f9f103d175c9354e8a737e
Showing with 11 additions and 2 deletions.
  1. +8 −1 src/plugins/gps_importer/qgsbabelformat.cpp
  2. +3 −1 src/plugins/gps_importer/qgsgpsplugin.cpp
@@ -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;
}

@@ -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" )

0 comments on commit 95e70f0

Please sign in to comment.