mminin / QGIS-misc-plugins

Sorts Layers in QGIS Layers Panel
1 stars 1 forks source link

Sort inside Group or Sub-group #2

Open hruda12 opened 6 years ago

hruda12 commented 6 years ago

Dear Mikhail, I thank you for your job. I appreciate your plugin "Sort layers" for QGIS. I do not know if you plan to develop it further. However, for a GROUP I would expect to have sorted only the layers in that Group (or sub-group).

Now, I am getting just this error:

Traceback (most recent call last): File "C:/Users/jurajb/.qgis2/python/plugins\SortLayers\sort_layers.py", line 68, in run mLNED = LayerNamesEnumDict(root.children()) File "C:/Users/jurajb/.qgis2/python/plugins\SortLayers\sort_layers.py", line 67, in for q in enumerate(listCh)} File "C:/Users/jurajb/.qgis2/python/plugins\SortLayers\sort_layers.py", line 67, in for q in enumerate(listCh)} AttributeError: 'QgsLayerTreeGroup' object has no attribute 'layerName'

Regards, Juraj

gacarrillor commented 3 years ago

Hi @hruda12 , see https://gis.stackexchange.com/a/397800/4972 for a solution.