Fixed bug with Qt plugins not loading from correct path

This commit is contained in:
Nav
2021-09-27 23:09:20 +01:00
parent e6d4af525f
commit fc6d7dfc51
2 changed files with 8 additions and 6 deletions

View File

@@ -52,10 +52,6 @@ void Insight::startup() {
auto targetDescriptor = this->targetControllerConsole.getTargetDescriptor(); auto targetDescriptor = this->targetControllerConsole.getTargetDescriptor();
#ifndef BLOOM_DEBUG_BUILD
QCoreApplication::addLibraryPath(QString::fromStdString(Paths::applicationDirPath() + "/plugins"));
#endif
this->application.setQuitOnLastWindowClosed(true); this->application.setQuitOnLastWindowClosed(true);
qRegisterMetaType<Bloom::Targets::TargetDescriptor>(); qRegisterMetaType<Bloom::Targets::TargetDescriptor>();
qRegisterMetaType<Bloom::Targets::TargetPinDescriptor>(); qRegisterMetaType<Bloom::Targets::TargetPinDescriptor>();

View File

@@ -4,12 +4,15 @@
#include <QApplication> #include <QApplication>
#include "src/Helpers/Thread.hpp" #include "src/Helpers/Thread.hpp"
#include "InsightWorker/InsightWorker.hpp" #include "src/TargetController/TargetControllerConsole.hpp"
#include "src/Helpers/Paths.hpp"
#include "src/ApplicationConfig.hpp" #include "src/ApplicationConfig.hpp"
#include "src/EventManager/EventManager.hpp" #include "src/EventManager/EventManager.hpp"
#include "src/EventManager/EventListener.hpp" #include "src/EventManager/EventListener.hpp"
#include "InsightWorker/InsightWorker.hpp"
#include "UserInterfaces/InsightWindow/InsightWindow.hpp" #include "UserInterfaces/InsightWindow/InsightWindow.hpp"
#include "src/TargetController/TargetControllerConsole.hpp"
namespace Bloom namespace Bloom
{ {
@@ -67,6 +70,9 @@ namespace Bloom
application( application(
( (
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, false), QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, false),
#ifndef BLOOM_DEBUG_BUILD
QCoreApplication::addLibraryPath(QString::fromStdString(Paths::applicationDirPath() + "/plugins")),
#endif
QApplication(this->qtApplicationArgc, this->qtApplicationArgv.data()) QApplication(this->qtApplicationArgc, this->qtApplicationArgv.data())
) )
) {}; ) {};