actions: Fix deleting single items in Doc. History

Resolves #15349
4812fddc adds the ability to delete multiple items
at once. However, the limit to delete was accidentally
set to greater than 1, rather than 0. This patch fixes
this mistake.
This commit is contained in:
Alx Sa 2025-11-20 14:53:31 +00:00
parent c8d7aa0814
commit 84fb38ab72

View file

@ -226,7 +226,7 @@ documents_remove_cmd_callback (GimpAction *action,
GList *images = NULL;
GList *list;
if (gimp_container_view_get_selected (editor->view, &images) > 1)
if (gimp_container_view_get_selected (editor->view, &images) > 0)
{
for (list = images; list; list = list->next)
{