forked from enlightenment/edi
mainview: Don't promote a tab immediately before closing it
This commit is contained in:
parent
e18f8b5760
commit
75c1d42e55
|
@ -361,11 +361,15 @@ edi_mainview_panel_item_select(Edi_Mainview_Panel *panel, Edi_Mainview_Item *ite
|
|||
|
||||
static void
|
||||
_promote(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
|
||||
const char *emission EINA_UNUSED, const char *source)
|
||||
{
|
||||
Edi_Mainview_Panel *panel;
|
||||
Edi_Mainview_Item *item = (Edi_Mainview_Item *) data;
|
||||
|
||||
// ignore if we clicked the delete part of the button
|
||||
if (!strcmp(source, "del"))
|
||||
return;
|
||||
|
||||
panel = edi_mainview_panel_for_item_get(item);
|
||||
|
||||
_edi_mainview_panel_cache_set();
|
||||
|
|
Loading…
Reference in New Issue