Launcher: fix detection of seaplanes and helis.
This commit is contained in:
parent
ece20db882
commit
f5c70e01b0
1 changed files with 4 additions and 0 deletions
|
@ -408,6 +408,10 @@ QVariant AircraftItemModel::dataFromPackage(const PackageRef& item, const Delega
|
|||
if (!v.empty()) {
|
||||
return QString::fromStdString(v);
|
||||
}
|
||||
} else if (role == AircraftIsHelicopterRole) {
|
||||
return item->hasTag("helicopter");
|
||||
} else if (role == AircraftIsSeaplaneRole) {
|
||||
return item->hasTag("seaplane") || item->hasTag("floats");
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
|
Loading…
Reference in a new issue