refs #928 Parse and load OBJ8 CSL packages.

This commit is contained in:
Mathew Sutcliffe
2017-04-06 03:06:25 +01:00
parent 65ac945281
commit 488f42b0a1
4 changed files with 16 additions and 12 deletions

View File

@@ -476,7 +476,8 @@ namespace BlackSimPlugin
QString CSimulatorXPlane::findCslPackage(const QString &modelFile)
{
QDir dir = QFileInfo(modelFile).dir();
const QFileInfo info(modelFile);
QDir dir = info.isDir() ? QDir(modelFile) : info.dir();
do
{
if (dir.exists(QStringLiteral("xsb_aircraft.txt")))