Ref T166, adjusted core to use changed connect lep_CommandLineInput

This commit is contained in:
Klaus Basan
2017-09-28 04:32:36 +02:00
parent 92bb17364a
commit 706a1b7b3d
3 changed files with 6 additions and 5 deletions

View File

@@ -57,6 +57,10 @@ CSwiftCore::CSwiftCore(QWidget *parent) :
initDBusMode();
initMenus();
// command line
ui->lep_CommandLineInput->setIdentifier(this->identifier());
connect(ui->lep_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine);
if (sGui->isParserOptionSet("start")) { startCore(sGui->getCmdDBusAddressValue()); }
}
@@ -173,9 +177,6 @@ void CSwiftCore::startCore(const QString &dBusAdress)
ui->pb_StopCore->setEnabled(true);
ui->gb_DBusMode->setDisabled(true);
sGui->processEventsToRefreshGui();
// context
connect(ui->le_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine);
}
void CSwiftCore::stopCore()