dont lose the menu selection while puttin the mouse over a separator (properly)

This commit is contained in:
Dana Jansens 2003-08-31 19:54:34 +00:00
parent d298cfb786
commit 7b06426b51

View file

@ -617,12 +617,12 @@ void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry)
ObMenuEntryFrame *old = self->selected;
ObMenuFrame *oldchild = self->child;
if (entry && entry->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR)
entry = old;
if (old == entry) return;
if (entry && entry->entry->type != OB_MENU_ENTRY_TYPE_SEPARATOR)
self->selected = entry;
else
self->selected = NULL;
self->selected = entry;
if (old)
menu_entry_frame_render(old);