mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor fixes to LassoComponent, ReferenceCountedArray, Plugin demo resizing. Added deselect method to FileBrowserComponent, made TreeViews update widths when scrolling sideways. Jucer development.
This commit is contained in:
parent
49b47cc866
commit
636ed22863
30 changed files with 509 additions and 378 deletions
|
|
@ -250,10 +250,13 @@ const File FileTreeComponent::getSelectedFile (const int index) const
|
|||
{
|
||||
const FileListTreeItem* const item = dynamic_cast <const FileListTreeItem*> (getSelectedItem (index));
|
||||
|
||||
if (item != 0)
|
||||
return item->file;
|
||||
return item != 0 ? item->file
|
||||
: File::nonexistent;
|
||||
}
|
||||
|
||||
return File::nonexistent;
|
||||
void FileTreeComponent::deselectAllFiles()
|
||||
{
|
||||
clearSelectedItems();
|
||||
}
|
||||
|
||||
void FileTreeComponent::scrollToTop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue