You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#ttp 331268 - SLATE: Replace instances of DragDrop::IsTypeMatch with FDragDropEvent::GetOperationAs()
#summary Replaced instances of DragDrop::IsTypeMatch with FDragDropEvent::GetOperationAs() #note Please change any instances of DragDrop::IsTypeMatch for the templated FDragDropEvent::GetOperationAs<>() or FDragDropOperation::IsOfType<>() where necessary #proj Editor #branch UE4 #reviewedby Nick.Atamas [CL 2042222 by Andrew Rodham in Main branch]
This commit is contained in:
@@ -436,10 +436,9 @@ FReply SSymbolDebugger::OnDragOver(const FGeometry& MyGeometry, const FDragDropE
|
||||
{
|
||||
if (GetSymbolDebuggerAction() == DebugAction_None)
|
||||
{
|
||||
if (DragDrop::IsTypeMatch<FExternalDragOperation>(DragDropEvent.GetOperation()))
|
||||
TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
|
||||
if (DragDropOp.IsValid())
|
||||
{
|
||||
TSharedPtr<FExternalDragOperation> DragDropOp = StaticCastSharedPtr<FExternalDragOperation>(DragDropEvent.GetOperation());
|
||||
|
||||
if (DragDropOp->HasFiles())
|
||||
{
|
||||
if (DragDropOp->GetFiles().Num() == 1)
|
||||
@@ -458,9 +457,9 @@ FReply SSymbolDebugger::OnDrop(const FGeometry& MyGeometry, const FDragDropEvent
|
||||
if (GetSymbolDebuggerAction() == DebugAction_None)
|
||||
{
|
||||
// Handle drag drop for import
|
||||
if (DragDrop::IsTypeMatch<FExternalDragOperation>(DragDropEvent.GetOperation()))
|
||||
TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
|
||||
if (DragDropOp.IsValid())
|
||||
{
|
||||
TSharedPtr<FExternalDragOperation> DragDropOp = StaticCastSharedPtr<FExternalDragOperation>(DragDropEvent.GetOperation());
|
||||
if (DragDropOp->HasFiles())
|
||||
{
|
||||
// Set the current method to CrashDump as that is the only thing we support dropping for
|
||||
|
||||
Reference in New Issue
Block a user