mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fixed an assertion that could be hit when calling StoredSettings::checkJUCEPaths()
This commit is contained in:
parent
10753da103
commit
7e310f51bb
1 changed files with 2 additions and 2 deletions
|
|
@ -202,8 +202,8 @@ void StoredSettings::checkJUCEPaths()
|
|||
auto moduleFolder = projectDefaults.getProperty (Ids::defaultJuceModulePath).toString();
|
||||
auto juceFolder = projectDefaults.getProperty (Ids::jucePath).toString();
|
||||
|
||||
auto validModuleFolder = isGlobalPathValid ({}, Ids::defaultJuceModulePath, moduleFolder);
|
||||
auto validJuceFolder = isGlobalPathValid ({}, Ids::jucePath, juceFolder);
|
||||
auto validModuleFolder = moduleFolder.isNotEmpty() && isGlobalPathValid ({}, Ids::defaultJuceModulePath, moduleFolder);
|
||||
auto validJuceFolder = juceFolder.isNotEmpty() && isGlobalPathValid ({}, Ids::jucePath, juceFolder);
|
||||
|
||||
if (validModuleFolder && ! validJuceFolder)
|
||||
projectDefaults.getPropertyAsValue (Ids::jucePath, nullptr) = File (moduleFolder).getParentDirectory().getFullPathName();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue