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 9349981 commit 71af6e8Copy full SHA for 71af6e8
src/app/composer/qgscomposer.cpp
@@ -777,8 +777,13 @@ void QgsComposer::on_mActionSaveAsTemplate_activated( void )
777
return;
778
}
779
780
- //save directory
781
QFileInfo saveFileInfo( saveFileName );
+ //check if suffix has been added
782
+ if(saveFileInfo.suffix().isEmpty())
783
+ {
784
+ QString saveFileNameWithSuffix = saveFileName.append(".qpt");
785
+ saveFileInfo = QFileInfo(saveFileNameWithSuffix);
786
+ }
787
settings.setValue( "UI/LastComposerTemplateDir", saveFileInfo.absolutePath() );
788
789
QFile templateFile( saveFileName );
0 commit comments