Преглед на файлове

Add asterisk when generating nameFilters

Matt Clarkson преди 11 години
родител
ревизия
24a27cd8a5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Libs/CommandLineModules/Frontend/QtGui/Resources/ctkCmdLineModuleXmlToQtUi.xsl

+ 2 - 1
Libs/CommandLineModules/Frontend/QtGui/Resources/ctkCmdLineModuleXmlToQtUi.xsl

@@ -246,7 +246,8 @@
     <property name="nameFilters">
       <stringlist>
       <xsl:for-each select="tokenize(@fileExtensions, ',')">
-        <string><xsl:value-of select="normalize-space(.)"/></string>
+        <!-- Note: We add an asterisk at the start. If the asterisk is missing in the xml, you can't select anything. But if you end up with multiple asterisks, you can still select files. -->
+        <string>*<xsl:value-of select="normalize-space(.)"/></string>
       </xsl:for-each>
       </stringlist>
     </property>