Avoid unnecessary JSON exceptions

This commit is contained in:
Klaus Basan
2017-09-17 19:18:52 +02:00
committed by Mathew Sutcliffe
parent ec8838198f
commit 4762a95216
3 changed files with 4 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ namespace BlackGui
void CLiveryForm::jsonPasted(const QString &json)
{
if (json.isEmpty()) { return; } // avoid unnecessary conversions
try
{
CVariant jsonVariant;