Skip to content

Commit 08f2a02

Browse files
committedOct 25, 2018
Ensure save as style file appends qml extension
... or you'll save in the DB instead
1 parent 0959e9f commit 08f2a02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7398,6 +7398,11 @@ void QgisApp::saveStyleFile( QgsMapLayer *layer )
73987398
if ( filename.isEmpty() )
73997399
return;
74007400

7401+
if ( ! filename.endsWith( QStringLiteral( ".qml" ) ) )
7402+
{
7403+
filename += QStringLiteral( ".qml" );
7404+
}
7405+
74017406
bool defaultLoadedFlag;
74027407
layer->saveNamedStyle( filename, defaultLoadedFlag );
74037408

0 commit comments

Comments
 (0)
Please sign in to comment.