mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T786, make sure callbacks are called in correct thread
* callback.singleShot * shutdown guards, "myself" * BLACK_VERIFY * Qt::QueuedConnection
This commit is contained in:
committed by
Mat Sutcliffe
parent
fbf63457c1
commit
3be498a347
@@ -104,7 +104,7 @@ namespace BlackGui
|
||||
|
||||
// here I know I am the selected widget, update, but keep GUI responsive (-> timer)
|
||||
//QTimer::singleShot(1000, this, &CWeatherComponent::update);
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
}
|
||||
|
||||
void CWeatherComponent::toggleUseOwnAircraftPosition(bool useOwnAircraftPosition)
|
||||
@@ -243,7 +243,7 @@ namespace BlackGui
|
||||
|
||||
// Context connections
|
||||
Q_ASSERT(sGui->getIContextSimulator());
|
||||
connect(sGui->getIContextSimulator(), &IContextSimulator::weatherGridReceived, this, &CWeatherComponent::weatherGridReceived);
|
||||
connect(sGui->getIContextSimulator(), &IContextSimulator::weatherGridReceived, this, &CWeatherComponent::weatherGridReceived, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CWeatherComponent::setWeatherGrid(const CWeatherGrid &weatherGrid)
|
||||
|
||||
Reference in New Issue
Block a user