diff --git a/src/Insight/Insight.cpp b/src/Insight/Insight.cpp index d273a84a..1fcda414 100644 --- a/src/Insight/Insight.cpp +++ b/src/Insight/Insight.cpp @@ -48,16 +48,12 @@ void Insight::startup() { auto targetDescriptor = this->targetControllerConsole.getTargetDescriptor(); - std::string qtAppName = "Bloom"; - char* appArguments[] = {qtAppName.data()}; - auto appArgCount = 1; - #ifndef BLOOM_DEBUG_BUILD QCoreApplication::addLibraryPath(QString::fromStdString(Application::getApplicationDirPath() + "/plugins")); #endif QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); - this->application = new QApplication(appArgCount, appArguments); + this->application = new QApplication(this->qtApplicationArgc, this->qtApplicationArgv.data()); this->application->setQuitOnLastWindowClosed(true); qRegisterMetaType(); qRegisterMetaType(); diff --git a/src/Insight/Insight.hpp b/src/Insight/Insight.hpp index 926953e9..b75ec215 100644 --- a/src/Insight/Insight.hpp +++ b/src/Insight/Insight.hpp @@ -24,6 +24,10 @@ namespace Bloom { Q_OBJECT private: + std::string qtApplicationName = "Bloom"; + std::array qtApplicationArgv = {this->qtApplicationName.data()}; + int qtApplicationArgc = 1; + ApplicationConfig applicationConfig; EnvironmentConfig environmentConfig; InsightConfig insightConfig;