qgis/Quantum-GIS — pull request #151 by etiennesky (2012-05-27 21:26:47+00:00)
Title: Browser fixes - bugs #5621 and #5636

#5636 - browser loads .gz and .vrt files as both OGR and GDAL data items

Simple fix and new test for qgsdataitem.

#5621 - make browser remove the file extensions when dragging and dropping layers into the canvas

This was discussed in the ML - patch adds file extensions only in browser but not in legend.

Added QgsLayerItem::layerName() used for layer creation, while name() holds the filename with extension (if applicable).

This replaces previous pull request https://github.com/qgis/Quantum-GIS/pull/147