forked from teamnwah/openmw-tes3coop
Use setData() instead of emtitting dataChanged() which does not work on CI. Also Fixes the remaining issue with subviews not updating due to only the modified flag emitting a change, which prevented the widget mapper from working for updates.
This commit is contained in:
parent
4780f1b2bd
commit
143eadb58e
1 changed files with 8 additions and 3 deletions
|
@ -323,11 +323,16 @@ void CSMWorld::RevertCommand::redo()
|
|||
// updated in the view unless the user had selected another item or forced a
|
||||
// repaint with other means
|
||||
int count = mModel.columnCount (index.parent ());
|
||||
if (count > 0)
|
||||
for (int i=0; i<count; ++i)
|
||||
{
|
||||
emit mModel.dataChanged(mModel.index (index.row(), 0, index.parent ()),
|
||||
mModel.index (index.row(), count - 1, index.parent ()));
|
||||
if (i != index.column())
|
||||
{
|
||||
auto colIndex = mModel.index (index.row (), i, index.parent ());
|
||||
auto data = mModel.data (colIndex);
|
||||
mModel.setData (colIndex, data);
|
||||
}
|
||||
}
|
||||
|
||||
mModel.setData (index, static_cast<int> (RecordBase::State_BaseOnly));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue