mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
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
|
// updated in the view unless the user had selected another item or forced a
|
||||||
// repaint with other means
|
// repaint with other means
|
||||||
int count = mModel.columnCount (index.parent ());
|
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 ()),
|
if (i != index.column())
|
||||||
mModel.index (index.row(), count - 1, index.parent ()));
|
{
|
||||||
|
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));
|
mModel.setData (index, static_cast<int> (RecordBase::State_BaseOnly));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue