refs #897, set timestamp for sent message and default "all messages"

This commit is contained in:
Klaus Basan
2017-03-05 19:21:17 +01:00
committed by Mathew Sutcliffe
parent a7393b04e1
commit 8cc683386f
3 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ namespace BlackMisc
void CTextMessage::markAsSent()
{
m_wasSent = true;
if (!this->hasValidTimestamp())
{
this->setCurrentUtcTime();
}
}
QString CTextMessage::getRecipientCallsignOrFrequency() const

View File

@@ -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 ""