History

trying to fix dependency shutdown

SamGondelman committed 8 years ago

Commit 79548651 parent 01c4b5716 files · +159 −190Browse files

Showing the changes to interface/src/ui/TestingDialog.cpp (1 of 16 files). Show all

Unified · Split

interface/src/ui/TestingDialog.cpp+1−2
@@ -23,8 +23,7 @@ TestingDialog::TestingDialog(QWidget* parent) : · 22 unmodified lines
23 23
24 _console->setFixedHeight(TESTING_CONSOLE_HEIGHT);24 _console->setFixedHeight(TESTING_CONSOLE_HEIGHT);
25 25
26 auto _engines = DependencyManager::get<ScriptEngines>();26 _engine = DependencyManager::get<ScriptEngines>()->loadScript(qApp->applicationDirPath() + testRunnerRelativePath);
27 _engine = _engines->loadScript(qApp->applicationDirPath() + testRunnerRelativePath);
28 _console->setScriptEngine(_engine);27 _console->setScriptEngine(_engine);
29 connect(_engine.data(), &ScriptEngine::finished, this, &TestingDialog::onTestingFinished);28 connect(_engine.data(), &ScriptEngine::finished, this, &TestingDialog::onTestingFinished);
30}29}