mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
WASAPI device list change fix. Changed Treeview to allow drag-and-drop onto its background. Minor clean-ups.
This commit is contained in:
parent
59f78f4cbe
commit
ecefeaa91e
21 changed files with 480 additions and 410 deletions
|
|
@ -1036,7 +1036,7 @@ void TreeView::handleDrag (const StringArray& files, const SourceDetails& dragSo
|
|||
|
||||
if (item != nullptr)
|
||||
{
|
||||
if (scrolled || dragInsertPointHighlight == 0
|
||||
if (scrolled || dragInsertPointHighlight == nullptr
|
||||
|| dragInsertPointHighlight->lastItem != item
|
||||
|| dragInsertPointHighlight->lastIndex != insertIndex)
|
||||
{
|
||||
|
|
@ -1058,7 +1058,13 @@ void TreeView::handleDrop (const StringArray& files, const SourceDetails& dragSo
|
|||
hideDragHighlight();
|
||||
|
||||
int insertIndex, x, y;
|
||||
TreeViewItem* const item = getInsertPosition (x, y, insertIndex, files, dragSourceDetails);
|
||||
TreeViewItem* item = getInsertPosition (x, y, insertIndex, files, dragSourceDetails);
|
||||
|
||||
if (item == nullptr)
|
||||
{
|
||||
insertIndex = 0;
|
||||
item = rootItem;
|
||||
}
|
||||
|
||||
if (item != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue