[QGIS-Developer] Disable scratch layer warning on closing project

Mathieu Pellerin nirvn.asia at gmail.com
Sat Sep 8 02:18:05 PDT 2018


That is, have your plugin set that setting to false upon loading. I wasn't
suggesting to switch the overall default to false.

On Sat, Sep 8, 2018, 16:08 Mathieu Pellerin <nirvn.asia at gmail.com> wrote:

> Chris,
>
> There is:
>
> QgsSettings().value( QStringLiteral( "askToSaveMemoryLayers" ), true,
> QgsSettings::App )
>
> Switch that to false, that'll disable the warning.
>
> I was wondering how long it'd take for the memory layer saver plugin to
> switch that off ;)
>
>
> On Sat, Sep 8, 2018, 13:15 Chris Crook <ccrook at linz.govt.nz> wrote:
>
>> Hi
>>
>> Is there a setting anywhere to disable the warning when closing a project
>> with temporary layers (This layer contains one or more temporary scratch
>> layers.  These layers are not saved to disk ....)
>>
>> Thanks
>> Chris
>>
>> ________________________________
>>
>> This message contains information, which may be in confidence and may be
>> subject to legal privilege. If you are not the intended recipient, you must
>> not peruse, use, disseminate, distribute or copy this message. If you have
>> received this message in error, please notify us immediately (Phone 0800
>> 665 463 or info at linz.govt.nz) and destroy the original message. LINZ
>> accepts no responsibility for changes to this email, or for any
>> attachments, after its transmission from LINZ. Thank You.
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180908/811d6a3d/attachment.html>


More information about the QGIS-Developer mailing list