Browse Source

Projucer: Fixed a bug where preprocessor definitions weren't being parsed initially and fixed a typo

tags/2021-05-28
ed 7 years ago
parent
commit
780902b492
2 changed files with 8 additions and 4 deletions
  1. +7
    -3
      extras/Projucer/Source/Project/jucer_Project.cpp
  2. +1
    -1
      extras/Projucer/Source/Project/jucer_Project.h

+ 7
- 3
extras/Projucer/Source/Project/jucer_Project.cpp View File

@@ -59,10 +59,12 @@ Project::Project (const File& f)
moveOldPropertyFromProjectToAllExporters (Ids::bigIcon);
moveOldPropertyFromProjectToAllExporters (Ids::smallIcon);
intialiseProjectValues();
initialiseProjectValues();
initialiseMainGroup();
initialiseAudioPluginValues();
parsedPreprocessorDefs = parsePreprocessorDefs (preprocessorDefsValue.get());
getModules().sortAlphabetically();
projectRoot.addListener (this);
@@ -170,7 +172,7 @@ void Project::initialiseMainGroup()
getMainGroup().initialiseMissingProperties();
}
void Project::intialiseProjectValues()
void Project::initialiseProjectValues()
{
projectNameValue.referTo (projectRoot, Ids::name, getUndoManagerFor (projectRoot), "JUCE Project");
projectUIDValue.referTo (projectRoot, Ids::ID, getUndoManagerFor (projectRoot), createAlphaNumericUID());
@@ -412,10 +414,12 @@ Result Project::loadDocument (const File& file)
enabledModulesList.reset();
projectRoot = newTree;
intialiseProjectValues();
initialiseProjectValues();
initialiseMainGroup();
initialiseAudioPluginValues();
parsedPreprocessorDefs = parsePreprocessorDefs (preprocessorDefsValue.get());
removeDefunctExporters();
updateOldModulePaths();
setChangedFlag (false);


+ 1
- 1
extras/Projucer/Source/Project/jucer_Project.h View File

@@ -356,7 +356,7 @@ private:
StringPairArray parsedPreprocessorDefs;
//==============================================================================
void intialiseProjectValues();
void initialiseProjectValues();
void initialiseMainGroup();
void initialiseAudioPluginValues();


Loading…
Cancel
Save