Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for ticket #942.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8446 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
StevenB authored and StevenB committed May 16, 2008
1 parent 27b0a65 commit f67d600
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/plugins/gps_importer/qgsgpsplugingui.cpp
Expand Up @@ -106,9 +106,15 @@ void QgsGPSPluginGui::on_buttonBox_accepted()
// or download GPS data from a device?
case 2: {
int featureType = cmbDLFeatureType->currentItem();

QString fileName = leDLOutput->text();
if(fileName.right(4) != ".gpx"){
fileName += ".gpx";
}

emit downloadFromGPS(cmbDLDevice->currentText(), cmbDLPort->currentText(),
featureType == 0, featureType == 1, featureType == 2,
leDLOutput->text(), leDLBasename->text());
fileName, leDLBasename->text());
break;
}
// or upload GPS data to a device?
Expand Down

0 comments on commit f67d600

Please sign in to comment.