mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #1576: delete an empty hotlist group w/o extra confirmation.
While deleting an empty group in hotlist, the extra confirmation "Group not empty. Remove it?" should not raise. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
4a6b22bf49
commit
a29abae2e3
@ -1246,7 +1246,9 @@ remove_from_hotlist (struct hotlist *entry)
|
||||
|
||||
if (entry->type == HL_TYPE_GROUP)
|
||||
{
|
||||
if (entry->head)
|
||||
struct hotlist *head = entry->head;
|
||||
|
||||
if (head != NULL && (head->type != HL_TYPE_DOTDOT || head->next != NULL))
|
||||
{
|
||||
char *header;
|
||||
int result;
|
||||
|
Loading…
Reference in New Issue
Block a user