mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Issue #77 Break cyclic dependency statusmessage <-> jsonexception
This commit is contained in:
@@ -152,7 +152,7 @@ namespace BlackGui
|
||||
}
|
||||
catch (const CJsonException &ex)
|
||||
{
|
||||
this->showOverlayMessage(ex.toStatusMessage(this, QStringLiteral("JSON format error. '%1'").arg(fiOtherModelFile.absoluteFilePath())));
|
||||
this->showOverlayMessage(CStatusMessage::fromJsonException(ex, this, QStringLiteral("JSON format error. '%1'").arg(fiOtherModelFile.absoluteFilePath())));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace BlackGui
|
||||
}
|
||||
catch (const CJsonException &ex)
|
||||
{
|
||||
ex.toLogMessage(this, "Parse error");
|
||||
CLogMessage(this).preformatted(CStatusMessage::fromJsonException(ex, this, "Parse error"));
|
||||
return parts;
|
||||
}
|
||||
return parts;
|
||||
|
||||
@@ -801,7 +801,7 @@ namespace BlackGui
|
||||
}
|
||||
catch (const CJsonException &ex)
|
||||
{
|
||||
m = ex.toStatusMessage(this, QString("Reading JSON from '%1'").arg(fileName));
|
||||
m = CStatusMessage::fromJsonException(ex, this, QString("Reading JSON from '%1'").arg(fileName));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user