]> git.mxchange.org Git - flightgear.git/commit
Launcher: silence 'Unknown aircraft URI scheme' warning on empty selection
authorAlessandro Menti <alessandro.menti@hotmail.it>
Thu, 14 Apr 2016 14:41:19 +0000 (16:41 +0200)
committerJames Turner <zakalawe@mac.com>
Sun, 17 Apr 2016 16:55:05 +0000 (17:55 +0100)
commit98a6b60b0055a7e6b245a21a44f6959b8c8fc22e
treec6cd11fda030ac66a81e436429762be54dc3f94a
parent550dde314fe5292b38b471f137af5c10cacd3598
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).
src/GUI/AircraftModel.cxx