diff --git a/libkcups/PPDModel.cpp b/libkcups/PPDModel.cpp --- a/libkcups/PPDModel.cpp +++ b/libkcups/PPDModel.cpp @@ -102,25 +102,18 @@ ret->setData(make, PPDMake); ret->setData(makeAndModel, PPDMakeAndModel); - QString text; - if (recommended) { - text = makeAndModel % - QLatin1String(" (") % - naturalLanguage % - QLatin1Char(')'); - } else { + if (!recommended) { // Removes the Make part of the string if (makeAndModel.startsWith(make)) { makeAndModel.remove(0, make.size() + 1); } - - // Create the PPD - text = makeAndModel.trimmed() % - QLatin1String(" (") % - naturalLanguage % - QLatin1Char(')'); } - ret->setText(text); + + ret->setText(makeAndModel.trimmed() % + QLatin1String(" (") % + naturalLanguage % + QLatin1Char(')') + ); return ret; }