# HG changeset patch # User Chris Cannam # Date 1227274655 0 # Node ID 7bec0807d7ba5a9f65310ecc26cbfd7fbc75fd5b # Parent f7de84fd10ece85c2504774311a7d8b5da7827c7 * Use enum for transform type instead of trying to do dumb things like compare translated strings diff -r f7de84fd10ec -r 7bec0807d7ba widgets/TransformFinder.cpp --- a/widgets/TransformFinder.cpp Thu Nov 20 14:58:52 2008 +0000 +++ b/widgets/TransformFinder.cpp Fri Nov 21 13:37:35 2008 +0000 @@ -286,9 +286,9 @@ } selectedText += tr(""); - if (desc.type != "") { + if (desc.type != TransformDescription::UnknownType) { selectedText += tr("
      — Plugin type: %1") - .arg(XmlExportable::encodeEntities(desc.type)); + .arg(XmlExportable::encodeEntities(factory->getTransformTypeName(desc.type))); } if (desc.category != "") { selectedText += tr("
      — Category: %1")