[nostalgia/core/studio] Obsolete UpdatePixelCommands that change nothing
This commit is contained in:
parent
4b832dd3d7
commit
bd1fc01ca1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user