Skip to content

Commit db73d22

Browse files
committed
Another fix for Qt Split, due to older version of Qt on Linux builder. Should be equivalent to Qt::SkipEmptyParts.
1 parent 5977483 commit db73d22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/effects/ObjectDetection.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ void ObjectDetection::SetJsonValue(const Json::Value root) {
411411
QString qClassFilter = QString::fromStdString(root["class_filter"].asString());
412412

413413
// Split the QString by commas and automatically trim each resulting string
414-
QStringList classList = qClassFilter.split(',', Qt::SkipEmptyParts);
414+
QStringList classList = qClassFilter.split(',');
415+
classList.removeAll(""); // Skip empty parts
415416
display_classes.clear();
416417

417418
// Iterate over the QStringList and add each trimmed, non-empty string

0 commit comments

Comments
 (0)