Skip to content
Permalink
Browse files

Fix drag and drop for qgz files. List in browser

  • Loading branch information
NathanW2 committed Dec 18, 2017
1 parent 25635f0 commit 0a6eb127b5c24b19a50e38a3d3c2e2b58bec6c15
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +1 −1 src/core/qgsdataitem.cpp
@@ -5962,7 +5962,7 @@ void QgisApp::openFile( const QString &fileName )
{
// check to see if we are opening a project file
QFileInfo fi( fileName );
if ( fi.completeSuffix() == QLatin1String( "qgs" ) )
if ( fi.completeSuffix() == QLatin1String( "qgs" ) || fi.completeSuffix() == QLatin1String( "qgz" ) )
{
QgsDebugMsg( "Opening project " + fileName );
openProject( fileName );
@@ -795,7 +795,7 @@ QVector<QgsDataItem *> QgsDirectoryItem::createChildren()
QString path = dir.absoluteFilePath( name );
QFileInfo fileInfo( path );

if ( fileInfo.suffix() == QLatin1String( "qgs" ) )
if ( fileInfo.suffix() == QLatin1String( "qgs" ) || fileInfo.suffix() == QLatin1String( "qgz" ) )
{
QgsDataItem *item = new QgsProjectItem( this, fileInfo.baseName(), path );
children.append( item );

0 comments on commit 0a6eb12

Please sign in to comment.
You can’t perform that action at this time.