|
|
|
@ -138,7 +138,8 @@ bool CSVWorld::TableSubView::eventFilter (QObject* object, QEvent* event)
|
|
|
|
|
{
|
|
|
|
|
if (event->type() == QEvent::Drop)
|
|
|
|
|
{
|
|
|
|
|
QDropEvent* drop = dynamic_cast<QDropEvent*>(event);
|
|
|
|
|
if (QDropEvent* drop = dynamic_cast<QDropEvent*>(event))
|
|
|
|
|
{
|
|
|
|
|
const CSMWorld::TableMimeData* data = dynamic_cast<const CSMWorld::TableMimeData*>(drop->mimeData());
|
|
|
|
|
if (!data) // May happen when non-records (e.g. plain text) are dragged and dropped
|
|
|
|
|
return false;
|
|
|
|
@ -150,6 +151,7 @@ bool CSVWorld::TableSubView::eventFilter (QObject* object, QEvent* event)
|
|
|
|
|
}
|
|
|
|
|
return handled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|