mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T35, optional model description when mapping
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5687f5c176
commit
fad7d4b8c9
@@ -636,7 +636,8 @@ namespace BlackMisc
|
||||
CStatusMessageList msgs;
|
||||
if (!hasModelString()) { msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, "Model: missing model string (aka key)")); }
|
||||
if (!hasValidSimulator()) {msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, "Model: no simulator set")); }
|
||||
if (!hasDescription()) {msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityWarning, "Model: no description")); }
|
||||
// as of T34 made description optional, lines can be removed after 6/2017
|
||||
// if (!hasDescription()) {msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityWarning, "Model: no description")); }
|
||||
if (withNestedObjects)
|
||||
{
|
||||
msgs.push_back(m_aircraftIcao.validate());
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace BlackMisc
|
||||
const QString &getDescription() const { return this->m_description; }
|
||||
|
||||
//! Descriptive text
|
||||
void setDescription(const QString &description) { this->m_description = description; }
|
||||
void setDescription(const QString &description) { this->m_description = description.trimmed(); }
|
||||
|
||||
//! Set queried model string
|
||||
void setQueriedModelString(const QString &model) { this->m_modelString = model; this->m_modelType = TypeQueriedFromNetwork; }
|
||||
|
||||
Reference in New Issue
Block a user