diff options
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbsprofilemanager.cpp')
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsprofilemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp b/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp index 1d81e6c507..ad557de5cc 100644 --- a/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp +++ b/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp @@ -85,7 +85,7 @@ QString toJSLiteral(const QVariant &val) QString res; const auto list = val.toList(); for (const QVariant &child : list) { - if (res.length()) res.append(", "); + if (!res.isEmpty() ) res.append(", "); res.append(toJSLiteral(child)); } res.prepend('['); |