Browse Source

Fixed a compiler warning

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
cce11f08b2
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      modules/juce_gui_basics/native/juce_mac_Windowing.mm

+ 3
- 4
modules/juce_gui_basics/native/juce_mac_Windowing.mm View File

@@ -333,10 +333,9 @@ bool DragAndDropContainer::performExternalDragDropOfFiles (const StringArray& fi
NSDraggingSourceHelper::setDragOperation (helper, canMoveFiles ? NSDragOperationMove
: NSDragOperationCopy);
if (auto* session = [view beginDraggingSessionWithItems: dragItems
event: event
source: helper])
return true;
return [view beginDraggingSessionWithItems: dragItems
event: event
source: helper] != nullptr;
}
}
}


Loading…
Cancel
Save