mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #369, gcc fixes
This commit is contained in:
@@ -241,6 +241,7 @@ namespace BlackCore
|
||||
Q_ASSERT(c);
|
||||
c = connect(networkContext, &IContextNetwork::changedAircraftEnabled, this->m_simulator, &ISimulator::changeAircraftEnabled);
|
||||
Q_ASSERT(c);
|
||||
Q_UNUSED(c);
|
||||
|
||||
for (const CSimulatedAircraft &simAircraft : networkContext->getAircraftInRange())
|
||||
{
|
||||
@@ -296,6 +297,7 @@ namespace BlackCore
|
||||
IContextNetwork *networkContext = this->getIContextNetwork();
|
||||
Q_ASSERT(networkContext);
|
||||
Q_ASSERT(networkContext->isLocalObject());
|
||||
Q_UNUSED(networkContext);
|
||||
this->m_simulator->disconnect(); // disconnect all simulator signals
|
||||
QObject::disconnect(this, nullptr, this->m_simulator, nullptr); // disconnect receiver simulator
|
||||
this->m_simulator->disconnectFrom(); // disconnect from simulator
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace BlackCore
|
||||
|
||||
CAircraftModelList CContextSimulatorProxy::getInstalledModelsStartingWith(const QString modelString) const
|
||||
{
|
||||
return m_dBusInterface->callDBusRet<BlackMisc::Simulation::CAircraftModelList>(QLatin1Literal("getInstalledModelsStartingWith"));
|
||||
return m_dBusInterface->callDBusRet<BlackMisc::Simulation::CAircraftModelList>(QLatin1Literal("getInstalledModelsStartingWith"), modelString);
|
||||
}
|
||||
|
||||
CAircraftIcao CContextSimulatorProxy::getIcaoForModelString(const QString &modelString) const
|
||||
|
||||
@@ -127,6 +127,10 @@ namespace BlackGui
|
||||
new QStandardItem(station.getBookedUntilUtc().toString(CDateTimeFormatter::formatYmdhm()))
|
||||
};
|
||||
break;
|
||||
case NotSet:
|
||||
default:
|
||||
Q_ASSERT(false);
|
||||
break;
|
||||
}
|
||||
typeFolderFirstColumn->appendRow(stationRow);
|
||||
}
|
||||
|
||||
@@ -260,8 +260,8 @@ namespace BlackMisc
|
||||
bool m_isOnline = false;
|
||||
QDateTime m_bookedFromUtc;
|
||||
QDateTime m_bookedUntilUtc;
|
||||
CInformationMessage m_atis = { CInformationMessage::ATIS };
|
||||
CInformationMessage m_metar = { CInformationMessage::METAR };
|
||||
CInformationMessage m_atis { CInformationMessage::ATIS };
|
||||
CInformationMessage m_metar { CInformationMessage::METAR };
|
||||
BlackMisc::Audio::CVoiceRoom m_voiceRoom;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace BlackMisc
|
||||
return CVariant::fromValue(this->getMSecsSinceEpoch());
|
||||
case IndexUtcTimestampFormatted:
|
||||
return CVariant::fromValue(this->getFormattedUtcTimestamp());
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
const QString m = QString("Cannot handle index %1").arg(index.toQString());
|
||||
@@ -108,6 +110,9 @@ namespace BlackMisc
|
||||
case IndexMSecsSinceEpoch:
|
||||
this->setMSecsSinceEpoch(variant.toInt());
|
||||
return;
|
||||
case IndexUtcTimestampFormatted:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
const QString m = QString("Cannot handle index %1").arg(index.toQString());
|
||||
|
||||
Reference in New Issue
Block a user