refs #485, refs #605 make clear when we use process events just to refresh GUI

This commit is contained in:
Klaus Basan
2016-03-13 18:17:02 +00:00
committed by Mathew Sutcliffe
parent f124412896
commit f1ace9dde0
5 changed files with 14 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ void CSwiftCore::startCore(const QString &dBusAdress)
ui->pb_StartCore->setEnabled(false);
ui->pb_StopCore->setEnabled(true);
ui->gb_DBusMode->setDisabled(true);
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
sGui->processEventsToRefreshGui();
// context
connect(ui->le_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine);
@@ -146,7 +146,7 @@ void CSwiftCore::stopCore()
ui->pb_StartCore->setEnabled(true);
ui->pb_StopCore->setEnabled(false);
ui->gb_DBusMode->setDisabled(false);
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
sGui->processEventsToRefreshGui();
sGui->exit();
}