Skip to content

Commit

Permalink
codecs qt plugins not in qt5, remove from Mac bundle check
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos authored and nyalldawson committed Mar 17, 2020
1 parent 1c9e032 commit e0d803c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/main.cpp
Expand Up @@ -1110,8 +1110,7 @@ int main( int argc, char *argv[] )
// An app bundled with QGIS_MACAPP_BUNDLE > 0 is considered a release bundle.
QString relLibPath( QDir::cleanPath( QCoreApplication::applicationDirPath().append( "/../PlugIns" ) ) );
// Note: relLibPath becomes the defacto QT_PLUGINS_DIR of a release app bundle
if ( QFile::exists( relLibPath + QStringLiteral( "/imageformats" ) )
&& QFile::exists( relLibPath + QStringLiteral( "/codecs" ) ) )
if ( QFile::exists( relLibPath + QStringLiteral( "/imageformats" ) ) )
{
// We are in a release app bundle.
// Strip QT_PLUGINS_DIR because it will crash a launched release app bundle, since
Expand Down

0 comments on commit e0d803c

Please sign in to comment.