<div dir="ltr"><div>Nice plugin though!<br></div><div dir="ltr"><br></div><div dir="ltr">Try this: <a href="https://termbin.com/3y60">https://termbin.com/3y60</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 19, 2019 at 3:51 PM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1/18/19 10:56 PM, Nyall Dawson wrote:<br>
> On Fri, 18 Jan 2019 at 21:19, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>> wrote:<br>
>><br>
>> On 1/18/19 12:13 PM, Alessandro Pasotti wrote:<br>
>><br>
>>> I didn't look at the code but maybe it's because the NAM instance is<br>
>>> per-thread and WMS/WFS downloaders run within threads.<br>
>><br>
>> Yeah, that is what I'm afraid of...<br>
>> I just do QgsNetworkAccessManager.instance() which get's it from current<br>
>> thread.<br>
>><br>
>> And (from what I understand) most providers do not keep an handle to<br>
>> some NAM :-(<br>
>><br>
>> There is no way to QgsNetworkAccessManager what instances are running in<br>
>> different threads?<br>
> <br>
> It'd need to be a change made in the core code -- the signals from the<br>
> background threads would need to be "bubbled up" to the main thread<br>
> instance of the manager.<br>
<br>
Meaning (?), that wherever now a signal of the nam<br>
(NetworkAccessManager) is connected to some local method, it is also to<br>
be connected to the nam of the parent/application thread?<br>
<br>
I had a look into some providers, but do not understand where this<br>
connection between signals is to be made?<br>
<br>
Is it in the application main thread when you create some<br>
downloader-class that you add some extra 'connect'-calls?<br>
<br>
Or is it in the downloader-class that you can fetch the<br>
parent/application thread and then get the nam-instance from there and<br>
do the connection?<br>
<br>
Or should I not even try :-)<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>