src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:43:22 +0000 (14:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:43:22 +0000 (14:43 +0800)
src/Project/Gtk.vala

index 0bdcf97..f0da3ee 100644 (file)
@@ -169,6 +169,9 @@ namespace Project {
                                                // if we have a vala file with the same name 
                                                // then do not add it...
                                                var vv = (new Regex("\\.c$").replace(fn, fn.legnth, 0, ".vala");
+                                               if (ret.index_of(vv) > -1) {
+                                                       continue;
+                                               }
                                                
                                                ret.add(dirname + "/" + fn);
                                                continue;