diff --git a/src/Insight/Insight.cpp b/src/Insight/Insight.cpp index 678b2f12..fad78993 100644 --- a/src/Insight/Insight.cpp +++ b/src/Insight/Insight.cpp @@ -52,10 +52,6 @@ void Insight::startup() { auto targetDescriptor = this->targetControllerConsole.getTargetDescriptor(); -#ifndef BLOOM_DEBUG_BUILD - QCoreApplication::addLibraryPath(QString::fromStdString(Paths::applicationDirPath() + "/plugins")); -#endif - this->application.setQuitOnLastWindowClosed(true); qRegisterMetaType(); qRegisterMetaType(); diff --git a/src/Insight/Insight.hpp b/src/Insight/Insight.hpp index 6ae28bea..f3ddc16a 100644 --- a/src/Insight/Insight.hpp +++ b/src/Insight/Insight.hpp @@ -4,12 +4,15 @@ #include #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/EventManager/EventManager.hpp" #include "src/EventManager/EventListener.hpp" + +#include "InsightWorker/InsightWorker.hpp" #include "UserInterfaces/InsightWindow/InsightWindow.hpp" -#include "src/TargetController/TargetControllerConsole.hpp" namespace Bloom { @@ -67,6 +70,9 @@ namespace Bloom application( ( QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, false), +#ifndef BLOOM_DEBUG_BUILD + QCoreApplication::addLibraryPath(QString::fromStdString(Paths::applicationDirPath() + "/plugins")), +#endif QApplication(this->qtApplicationArgc, this->qtApplicationArgv.data()) ) ) {};