refs #199, simpflified runtime init

This commit is contained in:
Klaus Basan
2014-04-01 23:35:17 +02:00
parent 6c125ba830
commit 855fa079c3

View File

@@ -168,14 +168,11 @@ void MainWindow::init(GuiModes::CoreMode coreMode)
if (this->m_timerSimulator == nullptr) this->m_timerSimulator = new QTimer(this);
// context
if (this->m_coreMode != GuiModes::CoreInGuiProcess)
{
this->m_rt.reset(new CRuntime(CRuntimeConfig::remote(), this));
}
else
{
this->m_rt.reset(new CRuntime(CRuntimeConfig::local(), this));
}
this->m_rt.reset(
this->m_coreMode != GuiModes::CoreInGuiProcess ?
new CRuntime(CRuntimeConfig::remote(), this) :
new CRuntime(CRuntimeConfig::local(), this)
);
// wire GUI signals
this->initGuiSignals();