1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 21:39:26 +00:00

Prevent drops on non-editable table cells

This commit is contained in:
Stanislav Bas 2015-06-24 16:36:09 +03:00
parent d1339a643a
commit 270c17faa7

View File

@ -52,7 +52,10 @@ void CSVWorld::DragRecordTable::dragMoveEvent(QDragMoveEvent *event)
QModelIndex index = indexAt(event->pos());
if (CSVWorld::DragDropUtils::canAcceptData(*event, getIndexDisplayType(index)))
{
event->accept();
if (index.flags() & Qt::ItemIsEditable)
{
event->accept();
}
}
else
{