Skip to content

Commit

Permalink
Don't try to create database connections for dxf files in browser
Browse files Browse the repository at this point in the history
This is very slow to do, and can grind the browser to a halt
for folders with many dxf files
  • Loading branch information
nyalldawson committed May 20, 2023
1 parent a51f8d1 commit ef25c58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/browser/qgsfilebaseddataitemprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,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 ef25c58

Please sign in to comment.