From 58639481c606f95fda8031714ec80b4982460167 Mon Sep 17 00:00:00 2001 From: Jay Nabonne Date: Wed, 30 Jan 2019 15:25:51 +0000 Subject: [PATCH] Make OnData behave like other implementations in terms of paying attention to what GetData returns. --- src/qt/dnd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qt/dnd.cpp b/src/qt/dnd.cpp index eddc667d52..83893db06c 100644 --- a/src/qt/dnd.cpp +++ b/src/qt/dnd.cpp @@ -265,8 +265,7 @@ bool wxDropTarget::OnDrop(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y)) wxDragResult wxDropTarget::OnData(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxDragResult def) { - GetData(); - return def; + return GetData() ? def : wxDragNone; } bool wxDropTarget::GetData()