diff options
-rw-r--r-- | subsurface-core/pluginmanager.cpp | 3 | ||||
-rw-r--r-- | subsurface-desktop-helper.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/subsurface-core/pluginmanager.cpp b/subsurface-core/pluginmanager.cpp index 41d226f61..290f43df0 100644 --- a/subsurface-core/pluginmanager.cpp +++ b/subsurface-core/pluginmanager.cpp @@ -11,6 +11,9 @@ PluginManager& PluginManager::instance() { return self; } +PluginManager::PluginManager() { +} + void PluginManager::loadPlugins() { QDir pluginsDir(qApp->applicationDirPath()); diff --git a/subsurface-desktop-helper.cpp b/subsurface-desktop-helper.cpp index af366fb84..420f75249 100644 --- a/subsurface-desktop-helper.cpp +++ b/subsurface-desktop-helper.cpp @@ -4,6 +4,7 @@ #include "display.h" #include "desktop-widgets/mainwindow.h" #include "helpers.h" +#include "pluginmanager.h" #include <QApplication> #include <QDesktopWidget> @@ -30,6 +31,8 @@ void init_ui() { init_qt_late(); + PluginManager::instance().loadPlugins(); + window = new MainWindow(); if (existing_filename && existing_filename[0] != '\0') window->setTitle(MWTF_FILENAME); |