From dc47c9602494cc014663528c3d34d9f24c3ec7b5 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sun, 11 Jul 2010 20:14:25 +0000 Subject: [PATCH] Make sure Qt loads plugins from the correct place on mac even when it decides to ignore qt.conf. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 055d7c952..78ba026ab 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -150,6 +150,10 @@ int main(int argc, char *argv[]) { TagLib::ID3v1::Tag::setStringHandler(&handler); QtSingleApplication a(argc, argv); +#ifdef Q_OS_DARWIN + QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + "/../PlugIns"); +#endif + a.setQuitOnLastWindowClosed(false); a.isRunning(); // Otherwise QtLocalPeer won't lock the lockfile :S