FIX uigetfile bug using *.* filter, fileIndex should not be 0 on OK 15/15915/2
Bruno JOFRET [Thu, 5 Feb 2015 13:52:17 +0000 (14:52 +0100)]
Change-Id: I4871521de134f55feb6a05c16153365ce82a3d85

scilab/modules/gui/src/java/org/scilab/modules/gui/utils/SciFileFilter.java

index 043c7d3..70bdd81 100644 (file)
@@ -135,6 +135,8 @@ public class SciFileFilter extends FileFilter {
             // Bug 2861: have to return true for all files if no mask given
             return true;
         } else if (mask.equals(".*\\..*")) {
+            int selectedIndex = this.filterIndex + 1;
+            FileChooserInfos.getInstance().setFilterIndex(selectedIndex);
             // bug 7285: *.* as filter returns also files without extension
             return true;
         } else {