Added comment.

This commit is contained in:
Tats
2017-01-05 01:05:32 -06:00
parent f5274da669
commit c2c45c4c3b
+1 -1
View File
@@ -227,7 +227,7 @@ void RemovePaintCommand::undo()
void RemovePaintCommand::redo()
{
MappingManager& mappingManager = _mainWindow->getMappingManager();
bool deleteWithoutPrompt = (!_paint.isNull());
bool deleteWithoutPrompt = (!_paint.isNull()); // to avoid the pop-up window when redoing after undoing
_paint = mappingManager.getPaintById(_paintId);
_paintMappings = mappingManager.getPaintMappings(_paint);
_mainWindow->deletePaint(_paintId, deleteWithoutPrompt);