We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c686c4f commit 97e7f0aCopy full SHA for 97e7f0a
src/app/qgisapp.cpp
@@ -4820,6 +4820,9 @@ void QgisApp::saveAsLayerDefinition()
4820
if ( path.isEmpty() )
4821
return;
4822
4823
+ if ( !path.endsWith(".qlr" ) )
4824
+ path = path.append(".qlr" );
4825
+
4826
QDomDocument doc = QgsMapLayer::asLayerDefinition( layers );
4827
QFile file( path );
4828
if ( file.open( QFile::WriteOnly | QFile::Truncate ) )
0 commit comments