File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5962,7 +5962,7 @@ void QgisApp::openFile( const QString &fileName )
5962
5962
{
5963
5963
// check to see if we are opening a project file
5964
5964
QFileInfo fi ( fileName );
5965
- if ( fi.completeSuffix () == QLatin1String ( " qgs" ) )
5965
+ if ( fi.completeSuffix () == QLatin1String ( " qgs" ) || fi. completeSuffix () == QLatin1String ( " qgz " ) )
5966
5966
{
5967
5967
QgsDebugMsg ( " Opening project " + fileName );
5968
5968
openProject ( fileName );
Original file line number Diff line number Diff line change @@ -795,7 +795,7 @@ QVector<QgsDataItem *> QgsDirectoryItem::createChildren()
795
795
QString path = dir.absoluteFilePath ( name );
796
796
QFileInfo fileInfo ( path );
797
797
798
- if ( fileInfo.suffix () == QLatin1String ( " qgs" ) )
798
+ if ( fileInfo.suffix () == QLatin1String ( " qgs" ) || fileInfo. suffix () == QLatin1String ( " qgz " ) )
799
799
{
800
800
QgsDataItem *item = new QgsProjectItem ( this , fileInfo.baseName (), path );
801
801
children.append ( item );
You can’t perform that action at this time.
0 commit comments