Make sure Qt loads plugins from the correct place on mac even when it decides to ignore qt.conf.

This commit is contained in:
John Maguire 2010-07-11 20:14:25 +00:00
parent bcc84911b8
commit dc47c96024
1 changed files with 4 additions and 0 deletions

View File

@ -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