mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 06:35:41 +08:00
Added "url" to signature "dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number, const QUrl &url)"
Allows to write log. messages with URL
This commit is contained in:
committed by
Mat Sutcliffe
parent
f840244bdb
commit
5b3c011a15
@@ -69,7 +69,7 @@ namespace BlackGui
|
||||
ui->tw_Network->setCurrentIndex(tab);
|
||||
|
||||
this->reloadOtherServersSetup();
|
||||
this->onWebServiceDataRead(CEntityFlags::VatsimDataFile, CEntityFlags::ReadFinished, -1);
|
||||
this->onWebServiceDataRead(CEntityFlags::VatsimDataFile, CEntityFlags::ReadFinished, -1, {});
|
||||
}
|
||||
|
||||
CNetworkDetailsComponent::~CNetworkDetailsComponent()
|
||||
@@ -142,7 +142,7 @@ namespace BlackGui
|
||||
return;
|
||||
}
|
||||
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
const CServer server = this->getCurrentServer();
|
||||
|
||||
// only override if not yet enabled
|
||||
@@ -169,7 +169,7 @@ namespace BlackGui
|
||||
|
||||
void CNetworkDetailsComponent::onServerTabWidgetChanged(int index)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
if (!m_updatePilotOnServerChanges) { return; }
|
||||
const bool vatsim = this->isVatsimServerSelected();
|
||||
const CServer server = vatsim ? this->getCurrentVatsimServer() : this->getCurrentOtherServer();
|
||||
@@ -184,10 +184,11 @@ namespace BlackGui
|
||||
emit this->overridePilot(server.getUser());
|
||||
}
|
||||
|
||||
void CNetworkDetailsComponent::onWebServiceDataRead(CEntityFlags::Entity entity, CEntityFlags::ReadState state, int number)
|
||||
void CNetworkDetailsComponent::onWebServiceDataRead(CEntityFlags::Entity entity, CEntityFlags::ReadState state, int number, const QUrl &url)
|
||||
{
|
||||
if (!CEntityFlags::isFinishedReadState(state)) { return; }
|
||||
Q_UNUSED(number);
|
||||
Q_UNUSED(number)
|
||||
Q_UNUSED(url)
|
||||
|
||||
if (entity == CEntityFlags::VatsimDataFile)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user