|
|
|
@ -490,10 +490,14 @@ void CSVWorld::Table::dropEvent(QDropEvent *event)
|
|
|
|
|
|
|
|
|
|
if (dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData())->holdsType(display))
|
|
|
|
|
{
|
|
|
|
|
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*> (event->mimeData());
|
|
|
|
|
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*>
|
|
|
|
|
(event->mimeData());
|
|
|
|
|
|
|
|
|
|
CSMWorld::UniversalId record (mime->returnMatching (display));
|
|
|
|
|
|
|
|
|
|
std::auto_ptr<CSMWorld::ModifyCommand> command (new CSMWorld::ModifyCommand
|
|
|
|
|
(*mProxyModel, index, QVariant (QString::fromStdString (record.getId()))));
|
|
|
|
|
|
|
|
|
|
mUndoStack.push (command.release());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|