[QGIS Commit] r10962 - trunk/qgis/src/plugins/grass
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jun 19 10:46:33 EDT 2009
Author: rugginoso
Date: 2009-06-19 10:46:32 -0400 (Fri, 19 Jun 2009)
New Revision: 10962
Modified:
trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
Fixed a redundant call.
Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2009-06-19 14:07:07 UTC (rev 10961)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2009-06-19 14:46:32 UTC (rev 10962)
@@ -1499,13 +1499,9 @@
if ( onlyLayer1 && layers[j].left( 1 ) != "1" )
continue;
- QStringList split = uri.split( '/', QString::SkipEmptyParts );
- QString layer = split.last();
-
QString name = QgsGrassUtils::vectorLayerName(
- map, layer, 1 );
-
- // TODO vector layer name
+ map, layers[j], 1 );
+
mIface->addVectorLayer( uri, name, "grass" );
}
}
More information about the QGIS-commit
mailing list