mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #576, fixed livery filtering and editing
* fixed selector by stripping extra info before selecting * correct reset of filter UI * return livery object directly from form if already valid DB object
This commit is contained in:
@@ -175,8 +175,15 @@ namespace BlackMisc
|
||||
bool CLivery::isValidCombinedCode(const QString &candidate)
|
||||
{
|
||||
if (candidate.isEmpty()) { return false; }
|
||||
if (candidate.count('.') != 1) { return false; }
|
||||
return candidate.length() > 2;
|
||||
if (candidate.startsWith(colorLiveryMarker()))
|
||||
{
|
||||
return candidate.length() > colorLiveryMarker().length() + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (candidate.count('.') != 1) { return false; }
|
||||
return candidate.length() > 2;
|
||||
}
|
||||
}
|
||||
|
||||
const QString &CLivery::standardLiveryMarker()
|
||||
|
||||
Reference in New Issue
Block a user