Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't try to create database connections for dxf files in browser
This is very slow to do, and can grind the browser to a halt
for folders with many dxf files
  • Loading branch information
nyalldawson authored and github-actions[bot] committed May 20, 2023
1 parent 5abcc13 commit 4654900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/browser/qgsfilebaseddataitemprovider.cpp
Expand Up @@ -372,7 +372,8 @@ QgsAbstractDatabaseProviderConnection *QgsFileDataCollectionItem::databaseConnec
}

const QString driverName = GDALGetDriverShortName( hDriver );
if ( driverName == QLatin1String( "PDF" ) )
if ( driverName == QLatin1String( "PDF" )
|| driverName == QLatin1String( "DXF" ) )
{
// unwanted drivers -- it's slow to create connections for these, and we don't really want
// to expose database capabilities for them (even though they kind of are database formats)
Expand Down

0 comments on commit 4654900

Please sign in to comment.