qgisred / QGISRed

GNU General Public License v2.0
24 stars 7 forks source link

Attribute error "QgisRasterLayer" object has no attribute "setReadOnly" every time I edit an element #61

Closed mcarvajalino closed 3 years ago

mcarvajalino commented 3 years ago

Hi,

Ever since installing version 0.14 I get this annoying error every time I modify any element in the network with the "Edit Element Properties" menu: image

I read somewhere that it happens because the plugin is not filtering raster layers form the TOC and trying to use vector layer methods upon them.

neslerel commented 3 years ago

Hi @mcarvajalino,

You are right! It is a plugin bug. I fixed it and in the next version will be available. If you don't want to wait:

  1. Download this file: qgisred_plugins.txt
  2. Change the extension from .txt to .py
  3. Copy and replace this file in C:\Users\marcos.fernandes\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\QGISRed

I hope it works and you can work without this annoying error.

mcarvajalino commented 3 years ago

Worked like a charm!, thanks a lot.

neslerel commented 3 years ago

Perfect @mcarvajalino !! Did you reopen the issue for some reason or we can close it again?