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.
  • Loading branch information
nyalldawson committed Aug 3, 2018
1 parent 0dc1a61 commit 85a7d5cb78ba668ba1c540f4eee5c32d42436fa2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -10973,6 +10973,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 85a7d5c

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