Only load Mac plugins from the app bundle.
This commit is contained in:
parent
a3e6a302c6
commit
e950b7cbf5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue