mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Replace INetwork::CConnectionStatus with proper value object
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
using namespace BlackCore;
|
||||
using namespace BlackCore::Context;
|
||||
using namespace BlackMisc::Network;
|
||||
using namespace BlackMisc::Simulation;
|
||||
|
||||
namespace BlackGui
|
||||
@@ -119,10 +120,10 @@ namespace BlackGui
|
||||
this->initGui();
|
||||
}
|
||||
|
||||
void CModelMatcherLogEnable::connectionStatusChanged(INetwork::ConnectionStatus from, INetwork::ConnectionStatus to)
|
||||
void CModelMatcherLogEnable::connectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
||||
{
|
||||
Q_UNUSED(from);
|
||||
if (to == INetwork::Connected || to == INetwork::Disconnected)
|
||||
if (to.isConnected() || to.isDisconnected())
|
||||
{
|
||||
this->initGui();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user