mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
fixed segfault and prevent drops from other documents
This commit is contained in:
parent
e1a4b64efb
commit
c97172d89c
@ -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…
x
Reference in New Issue
Block a user