From e950b7cbf57cf19db7c1a98830a967f2fca647e9 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sat, 28 Aug 2010 19:34:03 +0000 Subject: [PATCH] Only load Mac plugins from the app bundle. --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 78d7c1bb7..1e6f56d69 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);