From 11187a8d4f9a9d8814e284656e0b795874f6b64f Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 31 Jan 2017 10:20:45 -0300 Subject: [PATCH] Enable "Remove Layer" command if the layer is locked or hidden anyway --- src/app/commands/cmd_remove_layer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/commands/cmd_remove_layer.cpp b/src/app/commands/cmd_remove_layer.cpp index 9cdd737a7..881acdc53 100644 --- a/src/app/commands/cmd_remove_layer.cpp +++ b/src/app/commands/cmd_remove_layer.cpp @@ -1,5 +1,5 @@ // Aseprite -// Copyright (C) 2001-2016 David Capello +// Copyright (C) 2001-2017 David Capello // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. @@ -43,9 +43,7 @@ bool RemoveLayerCommand::onEnabled(Context* context) { return context->checkFlags(ContextFlags::ActiveDocumentIsWritable | ContextFlags::HasActiveSprite | - ContextFlags::HasActiveLayer | - ContextFlags::ActiveLayerIsVisible | - ContextFlags::ActiveLayerIsEditable); + ContextFlags::HasActiveLayer); } void RemoveLayerCommand::onExecute(Context* context)