src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Thu, 19 Nov 2015 06:25:06 +0000 (14:25 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Nov 2015 06:25:06 +0000 (14:25 +0800)
src/Project/Gtk.vala

index b96c5e8..cd99789 100644 (file)
@@ -454,11 +454,13 @@ namespace Project {
                {
                        string[] ret = {};
                        var sources = this.compilegroups.get("_default_").sources;
-                       //ret += this.firstPath(); << might not be needed?
+                       ret += this.firstPath();  
                        for(var i =0; i< sources.size; i++) {
                                
                                var path = this.resolve_path( this.firstPath(), sources.get(i));
-                               
+                               if (path == this.firstPath()) {
+                                       continue;
+                               }
                                if (Path.get_basename (path) == "vapi") {
                                        continue;