billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=3799c924dc9a3824058363ea91261cf08d9c1a2a

commit 3799c924dc9a3824058363ea91261cf08d9c1a2a
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Nov 21 14:57:05 2015 +0100

    fix wrong assert. Closes T2858
---
 src/bin/win.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/win.c b/src/bin/win.c
index d7b0087..23873d8 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2408,7 +2408,8 @@ _tabs_focus(Term_Container *tc, Term_Container *relative)
         Tab_Item *tab_item;
 
         l = _tab_item_find(tabs, relative);
-        assert(l);
+        if (!l)
+          return;
 
         tc->is_focused = EINA_TRUE;
 
@@ -2480,7 +2481,8 @@ _tabs_set_title(Term_Container *tc, Term_Container *child,
    tabs = (Tabs*) tc;
 
    l = _tab_item_find(tabs, child);
-   assert(l);
+   if (!l)
+     return;
    tab_item = l->data;
 
    if (tabs->selector && tab_item->selector_entry)

-- 


Reply via email to