summaryrefslogtreecommitdiffstats
path: root/core/pluginmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 12:29:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 12:38:59 -0700
commit2182f00177a62c8ca76ccfb7f39f4d564b70389c (patch)
treec14a2f6a0c1afaae555c34458f0a3e60503b2d6c /core/pluginmanager.cpp
parentbc6c8a3949d578e0b9be2ce5badf2ff54e9c2470 (diff)
downloadsubsurface-2182f00177a62c8ca76ccfb7f39f4d564b70389c.tar.gz
Reduce default verbosity
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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();