mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
* context menu * timer based component can fire directly * View base class (non templated) so it can use Q_OBJECT
This commit is contained in:
@@ -100,9 +100,10 @@ namespace BlackGui
|
||||
Q_ASSERT(this->getIContextNetwork());
|
||||
|
||||
QObject *sender = QObject::sender();
|
||||
if (sender == this->ui->pb_ReloadAtcStationsBooked && this->getIContextNetwork())
|
||||
if (sender == this->ui->tvp_AtcStationsBooked && this->getIContextNetwork())
|
||||
{
|
||||
// trigger new read, which takes some time. A signal will be received when this is done
|
||||
this->sendStatusMessage(CStatusMessage::getInfoMessage("Requested new bookings", CStatusMessage::TypeTrafficNetwork));
|
||||
this->getIContextNetwork()->readAtcBookingsFromSource();
|
||||
}
|
||||
else
|
||||
@@ -199,7 +200,9 @@ namespace BlackGui
|
||||
if (this->currentWidget() == this->ui->tb_AtcStationsOnline)
|
||||
{
|
||||
if (this->m_timestampLastReadBookedStations.isNull())
|
||||
{
|
||||
this->ps_reloadAtcStationsBooked();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user