Skip to content

Commit

Permalink
allow QGZ files in selections
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Feb 6, 2019
1 parent 92823d0 commit ab64527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4312,6 +4312,7 @@ void QgisApp::updateProjectFromTemplates()
QgsApplication::qgisSettingsDirPath() + "project_templates" ).toString();
QDir templateDir( templateDirName );
QStringList filters( QStringLiteral( "*.qgs" ) );
filters << QStringLiteral( "*.qgz" );
templateDir.setNameFilters( filters );
QStringList templateFiles = templateDir.entryList( filters );

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ void QgsOptions::selectProjectOnLaunch()
QString projPath = QFileDialog::getOpenFileName( this,
tr( "Choose project file to open at launch" ),
lastUsedDir,
tr( "QGIS files" ) + " (*.qgs *.QGS)" );
tr( "QGIS files" ) + " (*.qgs *.qgz *.QGS *.QGZ)" );
if ( !projPath.isNull() )
{
mProjectOnLaunchLineEdit->setText( projPath );
Expand Down

0 comments on commit ab64527

Please sign in to comment.