Files
GDevelop/IDE/DnDFileEditor.cpp
T
2015-07-05 22:55:12 +02:00

15 lines
317 B
C++

#include "DnDFileEditor.h"
#include "MainFrame.h"
bool DnDFileEditor::OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString& filenames)
{
size_t nFiles = filenames.GetCount();
if ( nFiles < 1 ) return false;
mainEditor.Open(filenames[0]);
return true;
}