fixed issue in qgis 2.6 brighton adding layer