Skip to content

Commit f6692cb

Browse files
committedAug 3, 2018
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)
1 parent 8ce6d28 commit f6692cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10887,6 +10887,9 @@ bool QgisApp::checkUnsavedLayerEdits()
1088710887

1088810888
bool QgisApp::checkMemoryLayers()
1088910889
{
10890+
if ( !QgsSettings().value( QStringLiteral( "askToSaveMemoryLayers" ), true, QgsSettings::App ).toBool() )
10891+
return true;
10892+
1089010893
// check to see if there are any memory layers present (with features)
1089110894
bool hasMemoryLayers = false;
1089210895
const QMap<QString, QgsMapLayer *> layers = QgsProject::instance()->mapLayers();

0 commit comments

Comments
 (0)
Please sign in to comment.