forked from teamnwah/openmw-tes3coop
fixed segfault and prevent drops from other documents
This commit is contained in:
parent
e1a4b64efb
commit
c97172d89c
2 changed files with 1 additions and 1 deletions
|
@ -125,6 +125,7 @@ void CSVWorld::DialogueDelegateDispatcherProxy::tableMimeDataDropped(const std::
|
||||||
if (lineEdit && mIndexWrapper.get())
|
if (lineEdit && mIndexWrapper.get())
|
||||||
{
|
{
|
||||||
emit tableMimeDataDropped(mEditor, mIndexWrapper->mIndex, data[i], document);
|
emit tableMimeDataDropped(mEditor, mIndexWrapper->mIndex, data[i], document);
|
||||||
|
emit editorDataCommited(mEditor, mIndexWrapper->mIndex, mDisplay);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,6 +256,5 @@ void CSVWorld::DropLineEdit::dropEvent(QDropEvent *event)
|
||||||
{
|
{
|
||||||
const CSMWorld::TableMimeData* data(dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData()));
|
const CSMWorld::TableMimeData* data(dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData()));
|
||||||
emit tableMimeDataDropped(data->getData(), data->getDocumentPtr());
|
emit tableMimeDataDropped(data->getData(), data->getDocumentPtr());
|
||||||
emit editingFinished ();
|
|
||||||
//WIP
|
//WIP
|
||||||
}
|
}
|
Loading…
Reference in a new issue