Prevent drops on non-editable table cells

c++11
Stanislav Bas 10 years ago
parent d1339a643a
commit 270c17faa7

@ -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
{

Loading…
Cancel
Save