qgis/Quantum-GIS — comment on commit 3c1eb0aca9b3b333a459574312e7b0651b115511
File: python/plugins/GdalTools/tools/doBuildVRT.py line 116
By brushtyler:

all the the code in this function could be replaced by using the LayerRegistry class within the GdalTools_utils.py file (look at line 9 for its import) which takes care to retrieve the list of supported layers:
`return [ layer.source() for layer in Utils.LayerRegistry.instance().getRasterLayers() ]`