If the color column selected clicked is not in the selection, edit the corresponding item, not the current selection.

This commit is contained in:
Maxime Gimeno 2018-02-08 13:23:57 +01:00
parent 070f661244
commit 1dfbced8d5
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ Scene::setData(const QModelIndex &index,
return true;
break;
case ColorColumn:
if(!selectionIndices().empty())
if(selectionIndices().contains(item_id(item)))
Q_FOREACH(Item_id item_index, selectionIndices())
this->item(item_index)->setColor(value.value<QColor>());
else