changeset 453:7bec0807d7ba

* Use enum for transform type instead of trying to do dumb things like compare translated strings
author Chris Cannam
date Fri, 21 Nov 2008 13:37:35 +0000
parents f7de84fd10ec
children e2a40fdadd8c
files widgets/TransformFinder.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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("<small>");
-        if (desc.type != "") {
+        if (desc.type != TransformDescription::UnknownType) {
             selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Plugin type: %1")
-                .arg(XmlExportable::encodeEntities(desc.type));
+                .arg(XmlExportable::encodeEntities(factory->getTransformTypeName(desc.type)));
         }
         if (desc.category != "") {
             selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Category: %1")