mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix #2227
git-svn-id: http://svn.osgeo.org/qgis/trunk@15784 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
0b4ddc5c74
commit
b47dfe5cdd
@ -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" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user