mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-31 03:00:05 +00:00
Fixed bug in project path settings where global values were erroneously set to project-specific values.
This commit is contained in:
parent
aefd5d3725
commit
a362dbe6aa
1 changed files with 4 additions and 1 deletions
|
|
@ -51,10 +51,13 @@ try : TextPropertyComponent (propertyName, 1024, false),
|
|||
pathValue (value),
|
||||
pathValueSource (dynamic_cast<DependencyPathValueSource&> (pathValue.getValueSource()))
|
||||
{
|
||||
bool initialValueIsEmpty = value.toString().isEmpty();
|
||||
bool initialValueIsEmpty = ! pathValueSource.isUsingProjectSettings();
|
||||
|
||||
getValue().referTo (pathValue);
|
||||
|
||||
// the following step is necessary because the above referTo() has internally called setValue(),
|
||||
// which has set the project value to whatever is displayed in the label (this may be the
|
||||
// global/fallback value). In this case we have to reset the project value to blank:
|
||||
if (initialValueIsEmpty)
|
||||
getValue().setValue (String::empty);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue