Implement DragAcceptFiles() only when wxUSE_DRAG_AND_DROP==1

This virtual method is implemented in wxWindowBase class only when
wxUSE_DRAG_AND_DROP==1, so it should be re-implemented in the derived class
wxWindowMac also only when wxUSE_DRAG_AND_DROP==1.
This commit is contained in:
Artur Wieczorek
2017-08-01 20:47:28 +02:00
parent f81cc8e61e
commit 8dd2ac3016
2 changed files with 2 additions and 3 deletions

View File

@@ -639,13 +639,12 @@ void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget)
GetPeer()->SetDropTarget(m_dropTarget) ;
}
#endif
// Old-style File Manager Drag & Drop
void wxWindowMac::DragAcceptFiles(bool WXUNUSED(accept))
{
// TODO:
}
#endif
// From a wx position / size calculate the appropriate size of the native control