mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Avoid unnecessary JSON exceptions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ec8838198f
commit
4762a95216
@@ -115,6 +115,7 @@ namespace BlackGui
|
||||
|
||||
void CLiveryForm::jsonPasted(const QString &json)
|
||||
{
|
||||
if (json.isEmpty()) { return; } // avoid unnecessary conversions
|
||||
try
|
||||
{
|
||||
CVariant jsonVariant;
|
||||
|
||||
Reference in New Issue
Block a user