Minor error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1195,10 +1195,16 @@ void MyFrame::OnDrop( wxDataViewEvent &event )
|
||||
|
||||
// only allow drags for item, not containers
|
||||
if (m_music_model->IsContainer( item ) )
|
||||
{
|
||||
event.Veto();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.GetDataFormat() != wxDF_TEXT)
|
||||
{
|
||||
event.Veto();
|
||||
return;
|
||||
}
|
||||
|
||||
wxTextDataObject obj;
|
||||
obj.SetData( wxDF_TEXT, event.GetDataSize(), event.GetDataBuffer() );
|
||||
|
Reference in New Issue
Block a user