additional check on droping to prevent exception

This commit is contained in:
Marek Kochanowicz 2014-02-21 12:55:01 +01:00
parent fcf17805a0
commit e2dce53543

View file

@ -499,6 +499,11 @@ void CSVWorld::Table::dropEvent(QDropEvent *event)
{
QModelIndex index = indexAt (event->pos());
if (!index.isValid())
{
return;
}
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*> (event->mimeData());
if (mime->fromDocument (mDocument))
{