From b766510f0d0e9c9e38c437dbe60a0aa99bbbb5bb Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 1 Sep 2013 10:50:35 +0200 Subject: [PATCH] * Fixed plugin dirs on OSX. --- src/libtomahawk/utils/PluginLoader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/utils/PluginLoader.cpp b/src/libtomahawk/utils/PluginLoader.cpp index fe8502a09..2c90424fa 100644 --- a/src/libtomahawk/utils/PluginLoader.cpp +++ b/src/libtomahawk/utils/PluginLoader.cpp @@ -70,7 +70,7 @@ const QHash< QString, QObject* > PluginLoader::loadPlugins() const { tLog() << "Load plugins of type" << d_ptr->type; - const QString errorMessage("Error loading plugin: %1: %2"); + const QString errorMessage( "Error loading plugin: %1: %2" ); QHash< QString, QObject* > plugins; @@ -106,7 +106,9 @@ PluginLoader::pluginDirs() QList< QDir > pluginDirs; QDir appDir( QCoreApplication::instance()->applicationDirPath() ); -#ifdef Q_WS_MAC + +#ifdef Q_OS_MAC + pluginDirs << appDir; if ( appDir.dirName() == "MacOS" ) { // Development convenience-hack