mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 22:15:34 +08:00
Ref T492, alias in model lists and model
Search for alias and modelstring in matching
This commit is contained in:
committed by
Mat Sutcliffe
parent
80e925fe80
commit
58cfdd1bb9
@@ -748,7 +748,7 @@ namespace BlackCore
|
||||
|
||||
// load from file
|
||||
CStatusMessage msg;
|
||||
const CAircraftModel model(this->getModelSet().findFirstByModelStringOrDefault(modelString));
|
||||
const CAircraftModel model(this->getModelSet().findFirstByModelStringAliasOrDefault(modelString));
|
||||
const CPixmap pm(model.loadIcon(msg));
|
||||
if (!msg.isEmpty()) { CLogMessage::preformatted(msg);}
|
||||
return pm;
|
||||
|
||||
Reference in New Issue
Block a user