Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading QLR file locks parent directory forever in Windows #22767

Closed
qgib opened this issue May 13, 2016 · 5 comments
Closed

Loading QLR file locks parent directory forever in Windows #22767

qgib opened this issue May 13, 2016 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented May 13, 2016

Author Name: asgerpetersen - (asgerpetersen -)
Original Redmine Issue: 14811
Affected QGIS version: 2.14.2
Redmine category:unknown


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

c:\test\file.qlr

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.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 20, 2017

Author Name: Nyall Dawson (@nyalldawson)


This should be fixed with 2.18 - can you confirm?


  • status_id was changed from Open to Feedback
  • description was changed from 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

c:\test\file.qlr

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. to 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

c:\test\file.qlr

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.

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Unknown

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2017

Author Name: Mie Winstrup (Mie Winstrup)


Hurray, I have tested with QGIS 2.18.13 and it has been fixed :)

Now, I can add a qlr-file to QGIS and afterwards I'm allowed to change to foldername where the qlr-file is located.

Thanks a lot for the fix.

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2017

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Sep 25, 2017
@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant