mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Tweaks
* check if parent is null * comments * icon in column * nullptr check in runtime based component
This commit is contained in:
@@ -35,6 +35,7 @@ namespace BlackCore
|
||||
this->connect(this->m_network, &INetwork::fsipirCustomPacketReceived, this, &CAirspaceMonitor::fsipirCustomPacketReceived);
|
||||
this->connect(this->m_network, &INetwork::serverReplyReceived, this, &CAirspaceMonitor::serverReplyReceived);
|
||||
|
||||
// AutoConnection: this should also avoid race conditions by updating the bookings
|
||||
this->connect(this->m_vatsimBookingReader, &CVatsimBookingReader::dataRead, this, &CAirspaceMonitor::receivedBookings);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@ namespace BlackGui
|
||||
|
||||
void CRuntimeBasedComponent::sendStatusMessage(const BlackMisc::CStatusMessage &statusMessage)
|
||||
{
|
||||
Q_ASSERT(this->getIContextApplication());
|
||||
if (!this->getIContextApplication()) return;
|
||||
this->getIContextApplication()->sendStatusMessage(statusMessage);
|
||||
}
|
||||
|
||||
void CRuntimeBasedComponent::sendStatusMessages(const BlackMisc::CStatusMessageList &statusMessages)
|
||||
{
|
||||
Q_ASSERT(this->getIContextApplication());
|
||||
if (!this->getIContextApplication()) return;
|
||||
this->getIContextApplication()->sendStatusMessages(statusMessages);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BlackGui
|
||||
CTimerBasedComponent::~CTimerBasedComponent()
|
||||
{
|
||||
this->m_timer->stop();
|
||||
this->disconnect(this->parent());
|
||||
if (this->parent()) this->disconnect(this->parent());
|
||||
}
|
||||
|
||||
void CTimerBasedComponent::setUpdateInterval(int milliSeconds)
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BlackGui
|
||||
break;
|
||||
|
||||
case UserShort:
|
||||
this->m_columns.addColumn(CColumn("", CUser::IndexCallsignIcon));
|
||||
this->m_columns.addColumn(CColumn(CUser::IndexCallsignIcon, true));
|
||||
this->m_columns.addColumn(CColumn("realname", CUser::IndexRealName));
|
||||
this->m_columns.addColumn(CColumn("callsign", CUser::IndexCallsign));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user