[QGIS Commit] r8446 - trunk/qgis/src/plugins/gps_importer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu May 15 20:56:35 EDT 2008


Author: StevenB
Date: 2008-05-15 20:56:34 -0400 (Thu, 15 May 2008)
New Revision: 8446

Modified:
   trunk/qgis/src/plugins/gps_importer/qgsgpsplugingui.cpp
Log:
Fix for ticket #942.


Modified: trunk/qgis/src/plugins/gps_importer/qgsgpsplugingui.cpp
===================================================================
--- trunk/qgis/src/plugins/gps_importer/qgsgpsplugingui.cpp	2008-05-15 20:30:01 UTC (rev 8445)
+++ trunk/qgis/src/plugins/gps_importer/qgsgpsplugingui.cpp	2008-05-16 00:56:34 UTC (rev 8446)
@@ -106,9 +106,15 @@
   // 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?



More information about the QGIS-commit mailing list