Skip to content
Browse files

Add hidden setting to skip the project memory layer warning

To be used by 3rd party plugins, e.g. memory layer saver, who
may want to surpress this warning.

(cherry-picked from 85a7d5c)
  • Loading branch information
nyalldawson committed Aug 3, 2018
1 parent 8ce6d28 commit f6692cb4cf47969a4b83492fbe62e61d95c92dc0
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -10887,6 +10887,9 @@ bool QgisApp::checkUnsavedLayerEdits()

bool QgisApp::checkMemoryLayers()
if ( !QgsSettings().value( QStringLiteral( "askToSaveMemoryLayers" ), true, QgsSettings::App ).toBool() )
return true;

// check to see if there are any memory layers present (with features)
bool hasMemoryLayers = false;
const QMap<QString, QgsMapLayer *> layers = QgsProject::instance()->mapLayers();

0 comments on commit f6692cb

Please sign in to comment.
You can’t perform that action at this time.