Bugfix: Qt launcher, enable variant aircraft on-disk
When mapping a URI to a QModelIndex, we were only considering the primary aircraft path, for on-disk aircraft as opposed to packages.
This commit is contained in:
parent
4f8cbbb204
commit
688ae7d156
1 changed files with 7 additions and 0 deletions
|
@ -756,6 +756,13 @@ QModelIndex AircraftItemModel::indexOfAircraftURI(QUrl uri) const
|
|||
if (item->path == path) {
|
||||
return index(row);
|
||||
}
|
||||
|
||||
// check variants too
|
||||
for (int vr=0; vr < item->variants.size(); ++vr) {
|
||||
if (item->variants.at(vr)->path == path) {
|
||||
return index(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (uri.scheme() == "package") {
|
||||
QString ident = uri.path();
|
||||
|
|
Loading…
Add table
Reference in a new issue