1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 08:53:52 +00:00

drag and drop works.

This commit is contained in:
Marek Kochanowicz 2014-02-13 20:19:51 +01:00
parent 1bcc6d6918
commit 40cc108e54

View file

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