Re: [QGIS-Developer] JSON strings in global variables

2018-04-12 Thread Adam Borczyk
Thanks for the response. First I tried to 'reset' the variables, but without purging QGIS configs (~/.config/QGIS folder). Since there is no 'delete global variable' method in QGIS 2 API I just set all of the variables I use to an empty string at the beginning of my code. This seems to work for now

Re: [QGIS-Developer] JSON strings in global variables

2018-04-09 Thread Nyall Dawson
On 10 April 2018 at 04:47, Adam Borczyk wrote: > Hello everyone, > > I'm developing a plugin under QGIS 2 environment in which I use global > variables. I'd like to know if it's allowed to pass a JSON string into a > global variable? > > My globals were fine until (I guess) I started to pass in js

[QGIS-Developer] JSON strings in global variables

2018-04-09 Thread Adam Borczyk
Hello everyone, I'm developing a plugin under QGIS 2 environment in which I use global variables. I'd like to know if it's allowed to pass a JSON string into a global variable? My globals were fine until (I guess) I started to pass in jsons and now I face an issue I described here: https://gis.st