[nostalgia/core/studio] Obsolete UpdatePixelCommands that change nothing

This commit is contained in:
Gary Talent 2019-12-22 21:35:00 -06:00
parent 4b832dd3d7
commit bd1fc01ca1

View File

@ -63,6 +63,7 @@ class UpdatePixelsCommand: public QUndoCommand {
pu.item = pixelItem;
pu.oldColorId = m_palette.indexOf(pixelItem->property("color").value<QColor>().name(QColor::HexArgb));
m_pixelUpdates.insert(pu);
setObsolete(pu.oldColorId == newColorId);
}
virtual ~UpdatePixelsCommand() = default;