Fix compilation error in TaskFeatureParameters.cpp

This commit is contained in:
ebswift
2025-10-18 11:41:22 +10:00
committed by Chris Hennes
parent ab035c4586
commit c34e4c5fcd

View File

@@ -200,8 +200,8 @@ bool TaskDlgFeatureParameters::accept()
QString statusText = QString::fromUtf8(getObject()->getStatusString());
// generic, fallback error message
if (errorText == "Error" || errorText.isEmpty()) {
if (!statusText.isEmpty() && statusText != "Error") {
if (errorText == QStringLiteral("Error") || errorText.isEmpty()) {
if (!statusText.isEmpty() && statusText != QStringLiteral("Error")) {
errorText = statusText;
} else {
errorText = tr("The feature could not be created with the given parameters.\n"