ide: Added extra checks to ProjectOptions::isEmpty for includeDirs, libraryDirs and...
authorJerome St-Louis <jerome@ecere.com>
Sat, 15 Oct 2011 20:01:24 +0000 (16:01 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 15 Oct 2011 20:01:24 +0000 (16:01 -0400)
ide/src/project/ProjectConfig.ec

index 14204e0..88ee1c6 100644 (file)
@@ -370,7 +370,7 @@ private:
             noLineNumbers == unset &&
             optimization == unset &&
             !preprocessorDefinitions &&
-            !includeDirs &&
+            (!includeDirs || !includeDirs.count) &&
             !defaultNameSpace &&
             strictNameSpaces == unset &&
             targetType == unset &&
@@ -379,12 +379,12 @@ private:
             !objectsDirectory &&
             !libraries &&
             !linkerOptions &&
-            !libraryDirs &&
+            (!libraryDirs || !libraryDirs.count) &&
             console == unset &&
             compress == unset &&
             excludeFromBuild == unset &&
-            !prebuildCommands &&
-            !postbuildCommands)
+            (!prebuildCommands || !prebuildCommands.count) &&
+            (!postbuildCommands || !postbuildCommands.count) )
             return true;
          return false;          
       }