Remi-C / interactive_map_tracking

A QGIS 2.6 plugin to track camera of user , AND/OR to autocommit/refresh edit on PostGIS vector layer
http://remi-c.github.io/interactive_map_tracking/
GNU General Public License v3.0
8 stars 4 forks source link

Warning: QDialog::exec: Recursive call detected #31

Open Remi-C opened 9 years ago

Remi-C commented 9 years ago

A strange error message, when launching qgis from terminal in gnome. The message is printed when we click on plugin icone

Warning: QDialog::exec: Recursive call detected
Remi-C commented 9 years ago

I suspect it is because we use the click on icon event to create the plugin the first time

yoyonel commented 9 years ago

http://stackoverflow.com/questions/13817016/how-to-return-from-exec-method-programmatically-in-static-singleton-class Interesting link.

Remi-C commented 9 years ago

Nice find

Remi-C commented 9 years ago

I think maybe our problem is simpler than that. maybe from obscur reason the plugin GUI get created several time, even when it already exists. It feels more like a design error than a race condition error. putting a singleton would work too, but it could be better practice to review the code to correct the primary architecture problem instead