Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
.qgz files are supported by default for opening
  • Loading branch information
pblottiere committed Jul 31, 2017
1 parent 49730ed commit 8ce1fb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -5235,12 +5235,10 @@ void QgisApp::fileOpen()
// Retrieve last used project dir from persistent settings
QgsSettings settings;
QString lastUsedDir = settings.value( QStringLiteral( "UI/lastProjectDir" ), QDir::homePath() ).toString();
const QString qgs_ext = tr( "QGIS files" ) + " (*.qgs *.QGS)";
const QString zip_ext = tr( "QGZ files" ) + " (*.qgz)";
QString fullPath = QFileDialog::getOpenFileName( this,
tr( "Choose a QGIS project file to open" ),
lastUsedDir,
qgs_ext + ";;" + zip_ext );
tr( "QGIS files" ) + " (*.qgs *.qgz *.QGS)" );
if ( fullPath.isNull() )
{
return;
Expand Down

0 comments on commit 8ce1fb2

Please sign in to comment.