vinayan / RectOvalDigitPlugin

A Quantum GIS plugin to digitize rectangles, ovals and other shapes
3 stars 5 forks source link

Instability caused by editingStarted and editingStopped signals not connected/disconnected properly #6

Open thbaumann opened 6 years ago

thbaumann commented 6 years ago

The plugin does not connect/disconnect the editingStarted/editingStopped-signals correct. If you are editing point-/line-layers in your project the plugin will register x*2 times the signals to these layers every time you save edits or toggle the editing mode. Afters several minutes digitizing and saving changes to these layers the plugin goes crazy calling the toggle function thousands of times. You can test this by adding a print statement to the toggle function and editing a point/line layer in a QGIS project.

    def toggle(self):
        print "toggle from Rectangles Ovals Digitizing Tool"

The following screencast shows how every time you save edits or toggle the editing mode there are more calls of the "toggle"-function of the plugin: https://vimeo.com/269177079