Improve XP model loader messages

Change the severity to Error for parser errors and raise a prominent popup with all collected issues.
Also be more explicit from which file and line the error came from.

Maniphest Tasks: T462
This commit is contained in:
Roland Rossgotterer
2019-01-31 13:32:52 +01:00
committed by Mat Sutcliffe
parent 6ea8d16460
commit 6aa1402303
2 changed files with 51 additions and 25 deletions

View File

@@ -120,6 +120,8 @@ namespace BlackMisc
CSLPackage parsePackageHeader(const QString &path, const QString &content);
void parseFullPackage(const QString &content, CSLPackage &package);
void addUniqueModel(const CAircraftModel &model, CAircraftModelList &models);
QPointer<CWorker> m_parserWorker; //!< worker will destroy itself, so weak pointer
QVector<CSLPackage> m_cslPackages; //!< Parsed Packages. No lock required since accessed only from one thread