1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

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

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