Skip to content

Commit a302925

Browse files
Gustrynyalldawson
authored andcommitted
allow QGZ files in selections
1 parent 06d5b99 commit a302925

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/qgisapp.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4367,6 +4367,7 @@ void QgisApp::updateProjectFromTemplates()
43674367
QgsApplication::qgisSettingsDirPath() + "project_templates" ).toString();
43684368
QDir templateDir( templateDirName );
43694369
QStringList filters( QStringLiteral( "*.qgs" ) );
4370+
filters << QStringLiteral( "*.qgz" );
43704371
templateDir.setNameFilters( filters );
43714372
QStringList templateFiles = templateDir.entryList( filters );
43724373

src/app/qgsoptions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ void QgsOptions::selectProjectOnLaunch()
12851285
QString projPath = QFileDialog::getOpenFileName( this,
12861286
tr( "Choose project file to open at launch" ),
12871287
lastUsedDir,
1288-
tr( "QGIS files" ) + " (*.qgs *.QGS)" );
1288+
tr( "QGIS files" ) + " (*.qgs *.qgz *.QGS *.QGZ)" );
12891289
if ( !projPath.isNull() )
12901290
{
12911291
mProjectOnLaunchLineEdit->setText( projPath );

0 commit comments

Comments
 (0)