mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Feature request based on new VATSIM code of conduct, allow empty homebase
This commit is contained in:
committed by
Mat Sutcliffe
parent
4030a1a730
commit
740cb5a536
@@ -9,7 +9,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Aviation
|
||||
{
|
||||
|
||||
QString CAirportIcaoCode::convertToQString(bool /** i18n **/) const
|
||||
{
|
||||
return m_icaoCode;
|
||||
|
||||
@@ -141,6 +141,11 @@ namespace BlackMisc
|
||||
return m_homebase.hasValidIcaoCode(false);
|
||||
}
|
||||
|
||||
bool CUser::hasValidOrEmptyHomeBase() const
|
||||
{
|
||||
return m_homebase.isEmpty() || this->hasValidHomeBase();
|
||||
}
|
||||
|
||||
CStatusMessageList CUser::validate() const
|
||||
{
|
||||
CStatusMessageList msgs;
|
||||
|
||||
@@ -103,6 +103,9 @@ namespace BlackMisc
|
||||
//! Has valid home base?
|
||||
bool hasValidHomeBase() const;
|
||||
|
||||
//! Has valid or empty home base?
|
||||
bool hasValidOrEmptyHomeBase() const;
|
||||
|
||||
//! Real name + homebase
|
||||
QString getRealNameAndHomeBase(const QString &separator = QString(" ")) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user