From f967e96aa55e3aa4ef68ed2ab18024c51d9af606 Mon Sep 17 00:00:00 2001 From: chrik5 Date: Tue, 4 Oct 2016 16:03:35 +0200 Subject: [PATCH] exit attach tags function if there are no tags to attach --- contrib/copy_attach_detach_tags.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/copy_attach_detach_tags.lua b/contrib/copy_attach_detach_tags.lua index 2cd4dde..d1ecb46 100644 --- a/contrib/copy_attach_detach_tags.lua +++ b/contrib/copy_attach_detach_tags.lua @@ -94,6 +94,7 @@ local function attach_tags() if next(image_tags) == nil then dt.print("No tags to attached, please copy tags first.") + return true end local sel_images = dt.gui.action_images