1
0
Fork 0

Launcher: fix detection of seaplanes and helis.

This commit is contained in:
James Turner 2020-07-13 14:26:35 +01:00
parent ece20db882
commit f5c70e01b0

View file

@ -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();