Skip to content

Commit

Permalink
Merge pull request #40315 from elpaso/nanoptmize-dll-exclude-auth
Browse files Browse the repository at this point in the history
Nano optimization: don't try to load auth methods as providers
  • Loading branch information
elpaso committed Nov 27, 2020
2 parents 58c09a3 + 3fa957e commit 2722b7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsproviderregistry.cpp
Expand Up @@ -201,6 +201,12 @@ void QgsProviderRegistry::init()
}
}

// Always skip authentication methods
if ( fi.fileName().contains( QStringLiteral( "authmethod" ), Qt::CaseSensitivity::CaseInsensitive ) )
{
continue;
}

QgsScopedRuntimeProfile profile( QObject::tr( "Load %1" ).arg( fi.fileName() ) );
QLibrary myLib( fi.filePath() );
if ( !myLib.load() )
Expand Down

0 comments on commit 2722b7c

Please sign in to comment.