mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-31 03:00:05 +00:00
Replaced the old atomic ops with a templated Atomic class. Minor tweaks to directory browser. Jucer development.
This commit is contained in:
parent
7cf5140eb2
commit
b56494b29b
36 changed files with 744 additions and 381 deletions
|
|
@ -176,10 +176,13 @@ int FileBrowserComponent::getNumSelectedFiles() const throw()
|
|||
|
||||
const File FileBrowserComponent::getSelectedFile (int index) const throw()
|
||||
{
|
||||
if ((flags & canSelectDirectories) != 0 && filenameBox->getText().isEmpty())
|
||||
return currentRoot;
|
||||
|
||||
if (! filenameBox->isReadOnly())
|
||||
return currentRoot.getChildFile (filenameBox->getText());
|
||||
else
|
||||
return chosenFiles[index];
|
||||
|
||||
return chosenFiles[index];
|
||||
}
|
||||
|
||||
bool FileBrowserComponent::currentFileIsValid() const
|
||||
|
|
@ -354,6 +357,9 @@ void FileBrowserComponent::fileDoubleClicked (const File& f)
|
|||
if (f.isDirectory())
|
||||
{
|
||||
setRoot (f);
|
||||
|
||||
if ((flags & canSelectDirectories) != 0)
|
||||
filenameBox->setText (String::empty);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue