1
0
Fork 0
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:
Julian Storer 2011-06-23 19:42:44 +01:00
parent 59f78f4cbe
commit ecefeaa91e
21 changed files with 480 additions and 410 deletions

View file

@ -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)
{