Skip to content

Commit

Permalink
Remove hardcoded path to Mac bundled Qt plugin folder. A qt.conf file…
Browse files Browse the repository at this point in the history
… can be added to the bundle to specify the location.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6307 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Dec 22, 2006
1 parent 0cadc32 commit ead3530
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/gui/main.cpp
Expand Up @@ -370,14 +370,6 @@ int main(int argc, char *argv[])
// If run at startup, the handler will set either or both of myProjectFileName and myFileList.
AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments, openDocumentsAEHandler, 0, false);

// If the QtCore framework is bundled with the application, clear the library search path
// and look for Qt plugins only within the application bundle.
QString bundledQtCore(QCoreApplication::applicationDirPath().append("/lib/QtCore.framework"));
if (QFile::exists(bundledQtCore))
{
QCoreApplication::setLibraryPaths(QStringList(QCoreApplication::applicationDirPath()));
}

// If the GDAL plugins are bundled with the application and GDAL_DRIVER_PATH
// is not already defined, use the GDAL plugins in the application bundle.
QString gdalPlugins(QCoreApplication::applicationDirPath().append("/lib/gdalplugins"));
Expand Down

0 comments on commit ead3530

Please sign in to comment.