fixed segfault and prevent drops from other documents

This commit is contained in:
Marek Kochanowicz 2014-03-13 17:00:14 +01:00
parent e1a4b64efb
commit c97172d89c
2 changed files with 1 additions and 1 deletions

View file

@ -125,6 +125,7 @@ void CSVWorld::DialogueDelegateDispatcherProxy::tableMimeDataDropped(const std::
if (lineEdit && mIndexWrapper.get())
{
emit tableMimeDataDropped(mEditor, mIndexWrapper->mIndex, data[i], document);
emit editorDataCommited(mEditor, mIndexWrapper->mIndex, mDisplay);
break;
}
}

View file

@ -256,6 +256,5 @@ void CSVWorld::DropLineEdit::dropEvent(QDropEvent *event)
{
const CSMWorld::TableMimeData* data(dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData()));
emit tableMimeDataDropped(data->getData(), data->getDocumentPtr());
emit editingFinished ();
//WIP
}