forked from teamnwah/openmw-tes3coop
additional check on droping to prevent exception
This commit is contained in:
parent
fcf17805a0
commit
e2dce53543
1 changed files with 5 additions and 0 deletions
|
@ -499,6 +499,11 @@ void CSVWorld::Table::dropEvent(QDropEvent *event)
|
||||||
{
|
{
|
||||||
QModelIndex index = indexAt (event->pos());
|
QModelIndex index = indexAt (event->pos());
|
||||||
|
|
||||||
|
if (!index.isValid())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*> (event->mimeData());
|
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*> (event->mimeData());
|
||||||
if (mime->fromDocument (mDocument))
|
if (mime->fromDocument (mDocument))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue