Bug report #14811
Loading QLR file locks parent directory forever in Windows
|Affected QGIS version:||2.14.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22767|
When loading a QLR file QGIS locks the parent directory. This lock is not released before QGIS is closed.
Imagine a qlr at the path
When this file is loaded you cannot move or rename c:\\test before QGIS has been closed.
This happens both when the QLR is loaded through the menu item "Layer -> Add from layer definition file..." and when the python binding "QgsLayerDefinition.loadLayerDefinition(path, group)" is used.
Affected versions are 2.14, 2.12 and possibly earlier also.