mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Ref T111, use Q_DECLARE_FLAGS SimulatorStatus instead of int
* changed emitSimulatorCombinedStatu * changed connected slots/functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e55480737e
commit
654c35f666
@@ -111,7 +111,12 @@ namespace BlackSimPlugin
|
||||
m_fs9Host(fs9Host),
|
||||
m_lobbyClient(lobbyClient)
|
||||
{
|
||||
connect(lobbyClient.data(), &CLobbyClient::disconnected, this, std::bind(&CSimulatorFs9::simulatorStatusChanged, this, 0));
|
||||
//! \fixme KB 7/2017 change or remove when reviewed Could we just use: connect(lobbyClient.data(), &CLobbyClient::disconnected, this, &CSimulatorFs9::disconnectFrom);
|
||||
connect(lobbyClient.data(), &CLobbyClient::disconnected, this, [ = ]
|
||||
{
|
||||
emit this->simulatorStatusChanged(ISimulator::Disconnected);
|
||||
});
|
||||
|
||||
m_defaultModel =
|
||||
{
|
||||
"Boeing 737-400",
|
||||
|
||||
Reference in New Issue
Block a user