Launcher: silence 'Unknown aircraft URI scheme' warning on empty selection
------------------------------------------------------------------------ If no aircraft is selected in the launcher, the routine AircraftItemModel::indexOfAircraftURI is called with an empty QUri, triggering a warning in the terminal. This commit removes such warning by ignoring QUris with empty schemes (the routine still returns an invalid index).
This commit is contained in:
parent
550dde314f
commit
98a6b60b00
1 changed files with 2 additions and 0 deletions
|
@ -862,6 +862,8 @@ QModelIndex AircraftItemModel::indexOfAircraftURI(QUrl uri) const
|
|||
}
|
||||
} // of linear package scan
|
||||
}
|
||||
} else if (uri.scheme() == "") {
|
||||
// Empty URI scheme (no selection), nothing to do
|
||||
} else {
|
||||
qWarning() << "Unknown aircraft URI scheme" << uri << uri.scheme();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue