Skip to content

Commit f67d600

Browse files
StevenBStevenB
StevenB
authored and
StevenB
committedMay 16, 2008
Fix for ticket #942.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8446 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 27b0a65 commit f67d600

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/plugins/gps_importer/qgsgpsplugingui.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,15 @@ void QgsGPSPluginGui::on_buttonBox_accepted()
106106
// or download GPS data from a device?
107107
case 2: {
108108
int featureType = cmbDLFeatureType->currentItem();
109+
110+
QString fileName = leDLOutput->text();
111+
if(fileName.right(4) != ".gpx"){
112+
fileName += ".gpx";
113+
}
114+
109115
emit downloadFromGPS(cmbDLDevice->currentText(), cmbDLPort->currentText(),
110116
featureType == 0, featureType == 1, featureType == 2,
111-
leDLOutput->text(), leDLBasename->text());
117+
fileName, leDLBasename->text());
112118
break;
113119
}
114120
// or upload GPS data to a device?

0 commit comments

Comments
 (0)
Please sign in to comment.