Only load Mac plugins from the app bundle.

This commit is contained in:
John Maguire 2010-08-28 19:34:03 +00:00
parent a3e6a302c6
commit e950b7cbf5
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ int main(int argc, char *argv[]) {
QtSingleApplication a(argc, argv);
#ifdef Q_OS_DARWIN
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + "/../PlugIns");
QCoreApplication::setLibraryPaths(
QStringList() << QCoreApplication::applicationDirPath() + "/../PlugIns");
#endif
a.setQuitOnLastWindowClosed(false);