aboutsummaryrefslogtreecommitdiffstats
path: root/core/pluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/pluginmanager.cpp')
-rw-r--r--core/pluginmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pluginmanager.cpp b/core/pluginmanager.cpp
index 28c978280..880ba2a0e 100644
--- a/core/pluginmanager.cpp
+++ b/core/pluginmanager.cpp
@@ -7,6 +7,9 @@
static QList<ISocialNetworkIntegration*> _socialNetworks;
+// no point in including dive.h for this
+extern int verbose;
+
PluginManager& PluginManager::instance()
{
static PluginManager self;
@@ -33,7 +36,9 @@ void PluginManager::loadPlugins()
#endif
pluginsDir.cd("plugins");
- qDebug() << "Plugins Directory: " << pluginsDir;
+ if (verbose)
+ qDebug() << "Plugins Directory: " << pluginsDir;
+
foreach (const QString& fileName, pluginsDir.entryList(QDir::Files)) {
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();