1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Refactored some directory iteration code and other minor clean-ups.

This commit is contained in:
Julian Storer 2010-04-25 15:14:32 +01:00
parent 5bbe222266
commit a7e824032f
37 changed files with 1692 additions and 2016 deletions

View file

@ -231,7 +231,7 @@ void FileBrowserComponent::setRoot (const File& newRootDirectory)
String path (newRootDirectory.getFullPathName());
if (path.isEmpty())
path += File::separator;
path = File::separatorString;
StringArray rootNames, rootPaths;
getRoots (rootNames, rootPaths);
@ -259,7 +259,7 @@ void FileBrowserComponent::setRoot (const File& newRootDirectory)
String currentRootName (currentRoot.getFullPathName());
if (currentRootName.isEmpty())
currentRootName += File::separator;
currentRootName = File::separatorString;
currentPathBox->setText (currentRootName, true);