Skip to content
Permalink
Browse files

Remove hardcoded path to Mac bundled Qt plugin folder. A qt.conf file…

… 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
telwertowski committed Dec 22, 2006
1 parent 0cadc32 commit ead353045663c336ebc415265b0b938e0c22adf0
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/gui/main.cpp
@@ -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"));

0 comments on commit ead3530

Please sign in to comment.
You can’t perform that action at this time.