mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #897, set timestamp for sent message and default "all messages"
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a7393b04e1
commit
8cc683386f
@@ -59,6 +59,10 @@ namespace BlackMisc
|
||||
void CTextMessage::markAsSent()
|
||||
{
|
||||
m_wasSent = true;
|
||||
if (!this->hasValidTimestamp())
|
||||
{
|
||||
this->setCurrentUtcTime();
|
||||
}
|
||||
}
|
||||
|
||||
QString CTextMessage::getRecipientCallsignOrFrequency() const
|
||||
|
||||
@@ -150,6 +150,7 @@ namespace BlackMisc
|
||||
bool wasSent() const;
|
||||
|
||||
//! Mark as sent
|
||||
//! \remark also sets current timestamp if there is no valid timestamp
|
||||
void markAsSent();
|
||||
|
||||
//! Get SELCAL code (if applicable, e.g. ABCD), otherwise ""
|
||||
|
||||
Reference in New Issue
Block a user