Ref T272, network can add as ECO system provider (the server connected knows its ECO system)

This commit is contained in:
Klaus Basan
2018-05-28 12:12:06 +02:00
parent 4eeaf1adc4
commit 776a096168
2 changed files with 8 additions and 2 deletions

View File

@@ -277,6 +277,7 @@ namespace BlackCore
if (m_status == vatStatusConnected)
{
m_server.setConnectedSinceNow();
this->setCurrentEcosystem(m_server.getEcosystem());
}
else
{
@@ -287,6 +288,8 @@ namespace BlackCore
{
this->stopPositionTimers();
this->clearState();
this->setLastEcosystem(m_server.getEcosystem());
this->setCurrentEcosystem(CEcosystem::NoSystem);
}
emit this->connectionStatusChanged(convertConnectionStatus(status), convertConnectionStatus(m_status));