ide: tweaked code related to managing (or not) debug session when compiling. fixed...
[sdk] / ide / src / project / Project.ec
index f3c26bc..63d87f2 100644 (file)
@@ -855,6 +855,26 @@ private:
    }
    //SetBool excludeFromBuild;
 
+   property bool configIsInActiveDebugSession
+   {
+      get
+      {
+#ifndef MAKEFILE_GENERATOR
+         return ide.project == this  && ide.debugger && ide.debugger.prjConfig == config && ide.debugger.isActive;
+#endif
+      }
+   }
+
+   property bool configIsInDebugSession
+   {
+      get
+      {
+#ifndef MAKEFILE_GENERATOR
+         return ide.project == this  && ide.debugger && ide.debugger.prjConfig == config && ide.debugger.isPrepared;
+#endif
+      }
+   }
+
    void SetPath(bool projectsDirs)
    {
 #ifndef MAKEFILE_GENERATOR
@@ -2516,13 +2536,17 @@ void ProjectConfig::LegacyProjectConfigLoad(File f)
             TrimLSpaces(equal, equal);
             if(!strcmpi(subSection, "LibraryDirs"))
             {
-               if(!options.libraryDirs) options.libraryDirs = { };
-               options.libraryDirs.Add(CopyString(equal));
+               if(!options.libraryDirs)
+                  options.libraryDirs = { [ CopyString(equal) ] };
+               else
+                  options.libraryDirs.Add(CopyString(equal));
             }
             else if(!strcmpi(subSection, "IncludeDirs"))
             {
-               if(!options.includeDirs) options.includeDirs = { };
-               options.includeDirs.Add(CopyString(equal));
+               if(!options.includeDirs)
+                  options.includeDirs = { [ CopyString(equal) ] };
+               else
+                  options.includeDirs.Add(CopyString(equal));
             }
          }
          else if(buffer[0] == '+')