Skip to content

Commit

Permalink
Allow Qt to search for Qt plugins (e.g. sqldrivers) in our plugin dir…
Browse files Browse the repository at this point in the history
…ectory

Without this it is necessary to explicitly provide QT_PLUGIN_PATH environment
variable for Qt plugins we build (e.g. Oracle DB sql driver)
  • Loading branch information
wonder-sk committed Jan 17, 2014
1 parent 119b7fd commit 5315cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsapplication.cpp
Expand Up @@ -178,6 +178,8 @@ void QgsApplication::init( QString customConfigPath )
}
ABISYM( mSystemEnvVars ) = systemEnvVarMap;

// allow Qt to search for Qt plugins (e.g. sqldrivers) in our plugin directory
QCoreApplication::addLibraryPath( pluginPath() );
}

QgsApplication::~QgsApplication()
Expand Down

0 comments on commit 5315cff

Please sign in to comment.