Skip to content

Commit c47e9ed

Browse files
committedDec 16, 2011
[BACKPORT] add extension to new GPX file if user ommit it (fix #4623)
1 parent 8618836 commit c47e9ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/plugins/gps_importer/qgsgpsplugin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ void QgsGPSPlugin::createGPX()
166166
tr( "GPS eXchange file (*.gpx)" ) );
167167
if ( !fileName.isEmpty() )
168168
{
169+
if ( !fileName.toLower().endsWith( ".gpx" ) )
170+
{
171+
fileName += ".gpx";
172+
}
169173
QFileInfo fileInfo( fileName );
170174
std::ofstream ofs( fileName.toUtf8() );
171175
if ( !ofs )

0 commit comments

Comments
 (0)
Please sign in to comment.