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:
Andrew Borodin 2011-10-22 18:41:03 +04:00
parent 4a6b22bf49
commit a29abae2e3

View File

@ -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;