rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=8c7b15c5d2af760cbbd6b62a02523d5dd570b6cb

commit 8c7b15c5d2af760cbbd6b62a02523d5dd570b6cb
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Jan 14 16:27:15 2016 +0200

    tabs: fix tab close
---
 src/bin/ui/tabs.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 2e9edf4..cc20b49 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -742,7 +742,11 @@ _tab_close(void *data,
    Tabs_Item *item = (Tabs_Item *)data;
    tabs.items = eina_list_remove(tabs.items, item);
    _del_tab(item);
-   if (!tabs.items) tabs_menu_tab_open(TAB_HOME_PROJECT_INFO);
+   if (!tabs.items)
+     {
+        tabs.selected = NULL;
+        tabs_menu_tab_open(TAB_HOME_PROJECT_INFO);
+     }
 }
 void
 tabs_tab_add(Group *group)

-- 


Reply via email to